summaryrefslogtreecommitdiff
path: root/test/orm/attributes.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-06-09 01:24:08 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-06-09 01:24:08 +0000
commit3cd10102e44db28d5fb787c7492e2ac2f7a4e4f9 (patch)
tree5a9c9893bc9b13f07a97dd18de7287854de07fc5 /test/orm/attributes.py
parentcde133c45d01848cd5696113fe94f269b7fe8d9c (diff)
downloadsqlalchemy-3cd10102e44db28d5fb787c7492e2ac2f7a4e4f9.tar.gz
- Query.UpdateDeleteTest.test_delete_fallback fails on mysql due to subquery in DELETE; not sure how to do this exact operation in MySQL
- added query_cls keyword argument to sessionmaker(); allows user-defined Query subclasses to be generated by query(). - added @attributes.on_reconstitute decorator, MapperExtension.on_reconstitute, both receieve 'on_load' attribute event allowing non-__init__ dependent instance initialization routines. - push memusage to the top to avoid pointless heisenbugs - renamed '_foostate'/'_fooclass_manager' to '_sa_instance_state'/'_sa_class_manager' - removed legacy instance ORM state accessors - query._get() will use _remove_newly_deleted instead of expunge() on ObjectDeleted, so that transaction rollback restores the previous state - removed MapperExtension.get(); replaced by a user-defined Query subclass - removed needless **kwargs from query.get() - removed Session.get(cls, id); this is redundant against Session.query(cls).get(id) - removed Query.load() and Session.load(); the use case for this method has never been clear, and the same functionality is available in more explicit ways
Diffstat (limited to 'test/orm/attributes.py')
-rw-r--r--test/orm/attributes.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/orm/attributes.py b/test/orm/attributes.py
index 26828ecac..327a3efd3 100644
--- a/test/orm/attributes.py
+++ b/test/orm/attributes.py
@@ -747,9 +747,7 @@ class HistoryTest(_base.ORMTest):
# no lazyload occurs so this allows overwrite operation to proceed
f = Foo()
eq_(attributes.get_history(attributes.instance_state(f), 'someattr'), ([], [], []))
- print f._foostate.committed_state
f.someattr = None
- print f._foostate.committed_state, f._foostate.dict
eq_(attributes.get_history(attributes.instance_state(f), 'someattr'), ([None], [], []))
f = Foo()