We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b0145c commit 049c7daCopy full SHA for 049c7da
1 file changed
src/tests/test_exceptions.py
@@ -289,7 +289,8 @@ def test_python_compat_of_managed_exceptions():
289
assert e.args == (msg,)
290
assert isinstance(e.args, tuple)
291
if PY3:
292
- assert repr(e)[:-2] == "OverflowException('Simple message'"
+ strexp = "OverflowException('Simple message"
293
+ assert repr(e)[:len(strexp)] == strexp
294
elif PY2:
295
assert repr(e) == "OverflowException(u'Simple message',)"
296
0 commit comments