diff options
Diffstat (limited to 'tests/test_errcodes.py')
-rwxr-xr-x | tests/test_errcodes.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_errcodes.py b/tests/test_errcodes.py index 6865194..4848a76 100755 --- a/tests/test_errcodes.py +++ b/tests/test_errcodes.py @@ -22,18 +22,22 @@ # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public # License for more details. -from testutils import unittest, ConnectingTestCase +from testutils import unittest, ConnectingTestCase, slow try: reload except NameError: - from imp import reload + try: + from importlib import reload + except ImportError: + from imp import reload from threading import Thread from psycopg2 import errorcodes class ErrocodeTests(ConnectingTestCase): + @slow def test_lookup_threadsafe(self): # Increase if it does not fail with KeyError |