diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-23 17:31:02 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-23 17:31:13 -0500 |
| commit | baacacaad8791f032112bc4537c100287d1cb72b (patch) | |
| tree | 83de4b3ab722dfe7d3507faa7c9ece0230c6c04b /test | |
| parent | 6c4aa115ae7cf9a100b99ae10030e7767b41aadb (diff) | |
| download | sqlalchemy-baacacaad8791f032112bc4537c100287d1cb72b.tar.gz | |
- fix stray connection
(cherry picked from commit 2419bfe34cd5a1f4ead67d556ba74f3f1950762b)
Diffstat (limited to 'test')
| -rw-r--r-- | test/aaa_profiling/test_resultset.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/aaa_profiling/test_resultset.py b/test/aaa_profiling/test_resultset.py index a964adcae..9ffa21cb6 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. |
