From a043a02926ce31d42ea11bc3828dcd216b223f8a Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 3 Aug 2009 00:46:01 +0000 Subject: [PATCH] unfortunately the implicit_returning thing adds call counts to these tests, since 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/aaa_profiling/test_zoomark.py b/test/aaa_profiling/test_zoomark.py index dede684090..1ad1dbdcd3 100644 --- a/test/aaa_profiling/test_zoomark.py +++ b/test/aaa_profiling/test_zoomark.py @@ -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() -- 2.47.3