Skip to content

Commit 049c7da

Browse files
authored
Update test_exceptions.py
1 parent 8b0145c commit 049c7da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tests/test_exceptions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ def test_python_compat_of_managed_exceptions():
289289
assert e.args == (msg,)
290290
assert isinstance(e.args, tuple)
291291
if PY3:
292-
assert repr(e)[:-2] == "OverflowException('Simple message'"
292+
strexp = "OverflowException('Simple message"
293+
assert repr(e)[:len(strexp)] == strexp
293294
elif PY2:
294295
assert repr(e) == "OverflowException(u'Simple message',)"
295296

0 commit comments

Comments
 (0)