summaryrefslogtreecommitdiff
path: root/test/ext/test_mutable.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-06-30 10:43:53 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-06-30 10:43:53 -0400
commit287e9d6a77ef20da98c28901fd118f4401aaab41 (patch)
tree0a3fe0b9fd1c0c254336986e7a5a984979588139 /test/ext/test_mutable.py
parentfc4f7de0051334987326de1e74cd86d2a08e2e07 (diff)
downloadsqlalchemy-287e9d6a77ef20da98c28901fd118f4401aaab41.tar.gz
- Fixed bug in the mutable extension whereby
if the same type were used twice in one mapping, the attributes beyond the first would not get instrumented.
Diffstat (limited to 'test/ext/test_mutable.py')
-rw-r--r--test/ext/test_mutable.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ext/test_mutable.py b/test/ext/test_mutable.py
index dec955bab..9d0a4a0c8 100644
--- a/test/ext/test_mutable.py
+++ b/test/ext/test_mutable.py
@@ -132,9 +132,11 @@ class MutableWithScalarPickleTest(_MutableDictTestBase, fixtures.MappedTest):
def define_tables(cls, metadata):
MutationDict = cls._type_fixture()
+ mutable_pickle = MutationDict.as_mutable(PickleType)
Table('foo', metadata,
Column('id', Integer, primary_key=True, test_needs_autoincrement=True),
- Column('data', MutationDict.as_mutable(PickleType)),
+ Column('skip', mutable_pickle),
+ Column('data', mutable_pickle),
Column('non_mutable_data', PickleType)
)
@@ -227,6 +229,7 @@ class MutableAssociationScalarPickleTest(_MutableDictTestBase, fixtures.MappedTe
Table('foo', metadata,
Column('id', Integer, primary_key=True, test_needs_autoincrement=True),
+ Column('skip', PickleType),
Column('data', PickleType)
)