]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
unfortunately the implicit_returning thing adds call counts to these tests, since
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Aug 2009 00:46:01 +0000 (00:46 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Aug 2009 00:46:01 +0000 (00:46 +0000)
they are single-inserts that just throw the RETURNING away.  we have to fetch it now
in order to auto-close.  in the real world this will not be an issue (and is not an
issue in the ORM either which always fetches)

test/aaa_profiling/test_zoomark.py

index dede684090d4b6f176eca6ab85a7dcbd0a2c01f3..1ad1dbdcd347cf8cd71b7c3b5c4a5cab3f33278c 100644 (file)
@@ -34,7 +34,7 @@ class ZooMarkTest(TestBase):
 
         creator = testing.db.pool._creator
         recorder = lambda: dbapi_session.recorder(creator())
-        engine = engines.testing_engine(options={'creator':recorder})
+        engine = engines.testing_engine(options={'creator':recorder, 'implicit_returning':False})
         metadata = MetaData(engine)
 
     def test_baseline_1_create_tables(self):
@@ -316,7 +316,7 @@ class ZooMarkTest(TestBase):
         global metadata
 
         player = lambda: dbapi_session.player()
-        engine = create_engine('postgresql:///', creator=player)
+        engine = create_engine('postgresql:///', creator=player, implicit_returning=False)
         metadata = MetaData(engine)
 
     @profiling.function_call_count(2991, {'2.4': 1796})
@@ -327,7 +327,7 @@ class ZooMarkTest(TestBase):
     def test_profile_1a_populate(self):
         self.test_baseline_1a_populate()
 
-    @profiling.function_call_count(305, {'2.4': 202})
+    @profiling.function_call_count(325, {'2.4': 202})
     def test_profile_2_insert(self):
         self.test_baseline_2_insert()