From 38d0bf6e399e2404ba9c0326ea9ec98a6b3da8ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Mon, 9 May 2022 21:22:57 +0200
Subject: [PATCH] Fix unit tests

---
 tests/test_coding/test_resources.py | 5 +++++
 tests/test_coding/test_rethrow.py   | 1 -
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/test_coding/test_resources.py b/tests/test_coding/test_resources.py
index abb622b6..1692762c 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 678c1079..6c8dd09e 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
 
-- 
GitLab