diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-08-08 01:02:16 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-08-08 01:02:16 +0000 |
commit | aff1798c36acc814b0b27497101b0a36b9c8683c (patch) | |
tree | 939ef0cbe960f1f8ff4899163c886dfe670d7a65 /test/base/attributes.py | |
parent | a38cc03bb6e114fe846704600aaf0b4ee6023422 (diff) | |
download | sqlalchemy-aff1798c36acc814b0b27497101b0a36b9c8683c.tar.gz |
adjusted __getstate__ on InstrumentedList to further avoid callables getting stuck in there...
Diffstat (limited to 'test/base/attributes.py')
-rw-r--r-- | test/base/attributes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/base/attributes.py b/test/base/attributes.py index 233c4458f..d3ca34931 100644 --- a/test/base/attributes.py +++ b/test/base/attributes.py @@ -49,9 +49,9 @@ class AttributesTest(PersistTest): # shouldnt be pickling callables at the class level def somecallable(*args): return None - manager.register_attribute(MyTest, 'mt2', uselist = False, trackparent=True, callable_=somecallable) + manager.register_attribute(MyTest, 'mt2', uselist = True, trackparent=True, callable_=somecallable) x = MyTest() - x.mt2 = MyTest2() + x.mt2.append(MyTest2()) x.user_id=7 s = pickle.dumps(x) |