diff options
Diffstat (limited to 'tests/test_async.py')
| -rwxr-xr-x | tests/test_async.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_async.py b/tests/test_async.py index 0a386d3..4eb5e6a 100755 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -444,7 +444,7 @@ class AsyncTests(ConnectingTestCase): try: cnn = psycopg2.connect('dbname=thisdatabasedoesntexist', async_=True) self.wait(cnn) - except psycopg2.Error, e: + except psycopg2.Error as e: self.assertNotEqual(str(e), "asynchronous connection failed", "connection error reason lost") else: |
