diff --git a/tests/test_coding/test_resources.py b/tests/test_coding/test_resources.py index abb622b631a599b0cce8111f012677b40a25decb..1692762c563b0fee625ce2787e8200a4043d2265 100644 --- a/tests/test_coding/test_resources.py +++ b/tests/test_coding/test_resources.py @@ -35,3 +35,8 @@ class TestResources(unittest.TestCase): ret = do_call() # type: Future cp.release_connection(conns.pop()) ret.result(timeout=5) + + while conns: + cp.release_connection(conns.pop()) + + del cp diff --git a/tests/test_coding/test_rethrow.py b/tests/test_coding/test_rethrow.py index 678c1079714ccde1c51ceb42f575221df8f802d8..6c8dd09e178c965d57adc748dcfd1fa8f96e578f 100644 --- a/tests/test_coding/test_rethrow.py +++ b/tests/test_coding/test_rethrow.py @@ -66,7 +66,6 @@ class TestStuff(unittest.TestCase): else: self.fail('KeyError not raised') - @unittest.skipIf(sys.implementation.name == 'cpython', 'Running on CPython') def test_log_exceptions(self): a = 5