Skip to content

Commit c856bc6

Browse files
committed
Fix regressions in Python 3 support
1 parent a7a4e2d commit c856bc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ class TestNotOneException(WithData):
6565
def test_TooFew_message_is_helpful(self):
6666
try:
6767
self.db.one("SELECT * FROM foo WHERE bar='blah'", strict=True)
68-
except TooFew, exc:
68+
except TooFew as exc:
6969
actual = str(exc)
7070
assert actual == "Got 0 rows instead of 1."
7171

7272
def test_TooMany_message_is_helpful(self):
7373
try:
7474
self.db.one("SELECT * FROM foo", strict=True)
75-
except TooMany, exc:
75+
except TooMany as exc:
7676
actual = str(exc)
7777
assert actual == "Got 2 rows instead of 1."
7878

0 commit comments

Comments
 (0)