]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
apparently this passes with implicit returning
authorPhilip Jenvey <pjenvey@underboss.org>
Wed, 29 Jul 2009 00:47:32 +0000 (00:47 +0000)
committerPhilip Jenvey <pjenvey@underboss.org>
Wed, 29 Jul 2009 00:47:32 +0000 (00:47 +0000)
test/engine/test_execute.py

index 3a527bacec8ff08289f0e54afbffb9c8005a3fc5..e520a7b49593a535bd17613d5b27ac4cb158f9fe 100644 (file)
@@ -84,7 +84,8 @@ class ExecuteTest(TestBase):
             except tsa.exc.DBAPIError:
                 assert True
 
-    @testing.fails_if(lambda: not testing.db.dialect.supports_sane_rowcount)
+    @testing.fails_if(lambda: (not testing.db.dialect.supports_sane_rowcount and
+                               not testing.db.dialect.implicit_returning))
     def test_empty_insert(self):
         """test that execute() interprets [] as a list with no params"""
         result = testing.db.execute(users.insert().values(user_name=bindparam('name')), [])