diff options
Diffstat (limited to 'tests/test_cancel.py')
-rwxr-xr-x | tests/test_cancel.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_cancel.py b/tests/test_cancel.py index 0ffa742..a8eb750 100755 --- a/tests/test_cancel.py +++ b/tests/test_cancel.py @@ -32,6 +32,7 @@ from psycopg2 import extras from testconfig import dsn from testutils import unittest, ConnectingTestCase, skip_before_postgres + class CancelTests(ConnectingTestCase): def setUp(self): @@ -71,6 +72,7 @@ class CancelTests(ConnectingTestCase): except Exception, e: errors.append(e) raise + del cur thread1 = threading.Thread(target=neverending, args=(self.conn, )) # wait a bit to make sure that the other thread is already in |