From 435a53f6ab14e96df9901a7fcd212c1bf6ce4af4 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 28 Jul 2010 10:01:55 -0400 Subject: [PATCH] - passive test fails on oracle, ensure passive test fails on sqlite as well --- test/orm/test_naturalpks.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/orm/test_naturalpks.py b/test/orm/test_naturalpks.py index 023ef1db21..b305375da1 100644 --- a/test/orm/test_naturalpks.py +++ b/test/orm/test_naturalpks.py @@ -760,7 +760,10 @@ class CascadeToFKPKTest(_base.MappedTest, testing.AssertsCompiledSQL): u1.addresses.remove(a1) u2.addresses.append(a1) sess.flush() - + + @testing.fails_on('oracle', 'oracle doesnt support ON UPDATE CASCADE ' + 'but requires referential integrity') + @testing.fails_on('sqlite', 'sqlite doesnt support ON UPDATE CASCADE') def test_change_m2o_passive(self): self._test_change_m2o(True) @@ -784,6 +787,9 @@ class CascadeToFKPKTest(_base.MappedTest, testing.AssertsCompiledSQL): u1.username='edmodified' sess.flush() eq_(a1.username, 'edmodified') + + sess.expire_all() + eq_(a1.username, 'edmodified') def test_move_m2o_passive(self): self._test_move_m2o(True) -- 2.47.2