From: Mike Bayer Date: Sat, 23 Jan 2016 22:31:02 +0000 (-0500) Subject: - fix stray connection X-Git-Tag: rel_1_0_12~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baacacaad8791f032112bc4537c100287d1cb72b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - fix stray connection (cherry picked from commit 2419bfe34cd5a1f4ead67d556ba74f3f1950762b) --- diff --git a/test/aaa_profiling/test_resultset.py b/test/aaa_profiling/test_resultset.py index a964adcaee..9ffa21cb66 100644 --- a/test/aaa_profiling/test_resultset.py +++ b/test/aaa_profiling/test_resultset.py @@ -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.