summaryrefslogtreecommitdiff
path: root/tests/test_with.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_with.py')
-rwxr-xr-xtests/test_with.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_with.py b/tests/test_with.py
index 9d91b51..e5c0bc2 100755
--- a/tests/test_with.py
+++ b/tests/test_with.py
@@ -212,7 +212,7 @@ class WithCursorTestCase(WithTestCase):
with conn.cursor('named') as cur:
cur.execute("select 1/0")
cur.fetchone()
- except psycopg2.DataError, e:
+ except psycopg2.DataError as e:
self.assertEqual(e.pgcode, '22012')
else:
self.fail("where is my exception?")