diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-03 04:56:02 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-03 04:56:02 +0000 |
commit | de8b335d80ecba0305e2b4796373a4064fd450b3 (patch) | |
tree | 26a5fab1a9f022adda5d5ad2de78b816fe0350e1 /tests/test_errcodes.py | |
parent | a8a3a298f8ade3b0430ff2df0a5d5ee1fe920e3d (diff) | |
parent | ca42306d7916647448184907e03c77ff54ebd4f9 (diff) | |
download | psycopg2-sql-compose.tar.gz |
Merge branch 'master' into sql-composesql-compose
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 |