From: Mike Bayer Date: Wed, 28 Jul 2010 14:01:55 +0000 (-0400) Subject: - passive test fails on oracle, ensure passive test fails on sqlite as well X-Git-Tag: rel_0_6_4~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=435a53f6ab14e96df9901a7fcd212c1bf6ce4af4;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - passive test fails on oracle, ensure passive test fails on sqlite as well --- 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)