We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7a4e2d commit c856bc6Copy full SHA for c856bc6
tests.py
@@ -65,14 +65,14 @@ class TestNotOneException(WithData):
65
def test_TooFew_message_is_helpful(self):
66
try:
67
self.db.one("SELECT * FROM foo WHERE bar='blah'", strict=True)
68
- except TooFew, exc:
+ except TooFew as exc:
69
actual = str(exc)
70
assert actual == "Got 0 rows instead of 1."
71
72
def test_TooMany_message_is_helpful(self):
73
74
self.db.one("SELECT * FROM foo", strict=True)
75
- except TooMany, exc:
+ except TooMany as exc:
76
77
assert actual == "Got 2 rows instead of 1."
78
0 commit comments