summaryrefslogtreecommitdiff
path: root/test/orm/cascade.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-11-01 20:12:36 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-11-01 20:12:36 +0000
commit2e9501683d42855105f80445a5e2e812d9390506 (patch)
tree3729c0a335033763ba598268d71bac764c79549f /test/orm/cascade.py
parent1bf0aee385e3164254bed0dcc6e005613806a665 (diff)
downloadsqlalchemy-2e9501683d42855105f80445a5e2e812d9390506.tar.gz
- session checks more carefully when determining "object X already in another session";
e.g. if you pickle a series of objects and unpickle (i.e. as in a Pylons HTTP session or similar), they can go into a new session without any conflict - added stricter checks around session.delete() similar to update() - shored up some old "validate" stuff in session/uow
Diffstat (limited to 'test/orm/cascade.py')
-rw-r--r--test/orm/cascade.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/orm/cascade.py b/test/orm/cascade.py
index e24fbbdba..adbb95265 100644
--- a/test/orm/cascade.py
+++ b/test/orm/cascade.py
@@ -384,6 +384,7 @@ class UnsavedOrphansTest(ORMTest):
u = User()
s.save(u)
+ s.flush()
a = Address()
assert a not in s.new
u.addresses.append(a)
@@ -394,7 +395,6 @@ class UnsavedOrphansTest(ORMTest):
assert False
except exceptions.FlushError:
assert True
- assert u.user_id is None, "Error: user should not be persistent"
assert a.address_id is None, "Error: address should not be persistent"