diff options
Diffstat (limited to 'tests/test_errcodes.py')
-rwxr-xr-x | tests/test_errcodes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_errcodes.py b/tests/test_errcodes.py index 6cf5ddb..6865194 100755 --- a/tests/test_errcodes.py +++ b/tests/test_errcodes.py @@ -32,6 +32,7 @@ except NameError: from threading import Thread from psycopg2 import errorcodes + class ErrocodeTests(ConnectingTestCase): def test_lookup_threadsafe(self): @@ -39,6 +40,7 @@ class ErrocodeTests(ConnectingTestCase): MAX_CYCLES = 2000 errs = [] + def f(pg_code='40001'): try: errorcodes.lookup(pg_code) |