diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-02 19:03:22 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-03 04:41:32 +0000 |
commit | 8baf6aa37293c75e8ffbf150f6504faa43a08045 (patch) | |
tree | 7ca5f2c635c5bb12de308f538d844392a71e1a43 /tests/test_errcodes.py | |
parent | 26952ecee421350fd234f9390f03285a966b0d46 (diff) | |
download | psycopg2-8baf6aa37293c75e8ffbf150f6504faa43a08045.tar.gz |
Convert warnings into errors on test
Diffstat (limited to 'tests/test_errcodes.py')
-rwxr-xr-x | tests/test_errcodes.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_errcodes.py b/tests/test_errcodes.py index 6865194..3e7ed81 100755 --- a/tests/test_errcodes.py +++ b/tests/test_errcodes.py @@ -27,7 +27,10 @@ from testutils import unittest, ConnectingTestCase 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 |