-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Output:
» ./python.exe Lib/test/test_traceback.py
.................................................................................................................................................................................................................................................................................................F................................................
======================================================================
FAIL: test_smoke_user_exception (__main__.TestTracebackException.test_smoke_user_exception)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/sobolev/Desktop/cpython2/Lib/test/test_traceback.py", line 3134, in test_smoke_user_exception
self.do_test_smoke(MyException('bad things happened'), expected)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/sobolev/Desktop/cpython2/Lib/test/test_traceback.py", line 3117, in do_test_smoke
self.assertEqual(expected_type_str, exc.exc_type_str)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'test.test_traceback.TestTracebackExceptio[44 chars]tion' != 'TestTracebackException.test_smoke_user_ex[24 chars]tion'
- test.test_traceback.TestTracebackException.test_smoke_user_exception.<locals>.MyException
? --------------------
+ TestTracebackException.test_smoke_user_exception.<locals>.MyException
I have a PR ready.
Linked PRs
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error