Skip to content

Direct invocation of test_traceback.py fails #115282

@sobolevn

Description

@sobolevn

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 dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions