| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8b0145c commit 049c7da
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -289,7 +289,8 @@ def test_python_compat_of_managed_exceptions(): | |||
| 289 | 289 | assert e.args == (msg,) | |
| 290 | 290 | assert isinstance(e.args, tuple) | |
| 291 | 291 | if PY3: | |
| 292 | - assert repr(e)[:-2] == "OverflowException('Simple message'" | ||
| 292 | + strexp = "OverflowException('Simple message" | ||
| 293 | + assert repr(e)[:len(strexp)] == strexp | ||
| 293 | 294 | elif PY2: | |
| 294 | 295 | assert repr(e) == "OverflowException(u'Simple message',)" | |
| 295 | 296 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments