]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- fix stray connection
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Jan 2016 22:31:02 +0000 (17:31 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Jan 2016 22:31:02 +0000 (17:31 -0500)
test/aaa_profiling/test_resultset.py

index a964adcaeea6243feb9d600d5ff84d7bdb19f7c4..9ffa21cb66b73856b3f7c164bdf865fefde6060e 100644 (file)
@@ -75,7 +75,10 @@ class ExecutionTest(fixtures.TestBase):
         @profiling.function_call_count()
         def go():
             c.execute("select 1")
-        go()
+        try:
+            go()
+        finally:
+            c.close()
 
     def test_minimal_engine_execute(self, variance=0.10):
         # create an engine without any instrumentation.