summaryrefslogtreecommitdiff
path: root/tests/test_module.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_module.py')
-rwxr-xr-xtests/test_module.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_module.py b/tests/test_module.py
index 41d8d6d..c9b9c6b 100755
--- a/tests/test_module.py
+++ b/tests/test_module.py
@@ -22,9 +22,11 @@
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
+import gc
import os
import sys
from subprocess import Popen
+from weakref import ref
import unittest
from .testutils import (skip_before_postgres,
@@ -190,9 +192,6 @@ class ExceptionsTestCase(ConnectingTestCase):
self.assertEqual(e.diag.severity, 'ERROR')
def test_diagnostics_life(self):
- import gc
- from weakref import ref
-
def tmp():
cur = self.conn.cursor()
try: