]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- passive test fails on oracle, ensure passive test fails on sqlite as well
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 28 Jul 2010 14:01:55 +0000 (10:01 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 28 Jul 2010 14:01:55 +0000 (10:01 -0400)
test/orm/test_naturalpks.py

index 023ef1db216d02be29333668ac3908f5ec4f048e..b305375da10ec18c04f05e62d3221c8144af5241 100644 (file)
@@ -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)