Skip to content

Direct invocation of test_traceback.py fails #115282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sobolevn opened this issue Feb 11, 2024 · 0 comments
Closed

Direct invocation of test_traceback.py fails #115282

sobolevn opened this issue Feb 11, 2024 · 0 comments
Assignees
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@sobolevn
Copy link
Member

sobolevn commented Feb 11, 2024

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

@sobolevn sobolevn added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir labels Feb 11, 2024
@sobolevn sobolevn self-assigned this Feb 11, 2024
sobolevn added a commit to sobolevn/cpython that referenced this issue Feb 11, 2024
fsc-eriker pushed a commit to fsc-eriker/cpython that referenced this issue Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant