]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remove old test
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 12 Jun 2008 20:46:22 +0000 (20:46 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 12 Jun 2008 20:46:22 +0000 (20:46 +0000)
attributes_rollback_test.py [deleted file]

diff --git a/attributes_rollback_test.py b/attributes_rollback_test.py
deleted file mode 100644 (file)
index ab0705a..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-from sqlalchemy.orm import attributes
-class Foo(object):pass
-attributes.register_class(Foo)
-attributes.register_attribute(Foo, 'x', uselist=False, useobject=False, mutable_scalars=True, copy_function=lambda x:x.copy())
-
-f = Foo()
-f._foostate.set_savepoint()
-print f._foostate.get_history('x')
-
-f.x = {'1':15}
-
-
-print f._foostate.get_history('x')
-f._foostate.commit_all()
-
-print f._foostate.get_history('x')
-
-f.x['2'] = 40
-print f._foostate.get_history('x')
-
-f._foostate.rollback()
-
-print f._foostate.get_history('x')
-
-#import pdb
-#pdb.Pdb().break_here()
-
-print f.x
-f.x['2'] = 40
-print f._foostate.get_history('x')
-