Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
C:\Users\KIRILL-1\CLionProjects\cpython> ./pythonLib/test/test_typing.pyRunningDebug|x64interpreter... .............................F.................................................................................................... ..........................................................................................................s....................... .................................................................................................................................. .................................................................................................................................. ....................................................... ======================================================================FAIL: test_repr (__main__.AnyTests.test_repr) ----------------------------------------------------------------------Traceback (mostrecentcalllast): File"C:\Users\KIRILL-1\CLionProjects\cpython\Lib\test\test_typing.py", line118, intest_reprself.assertEqual( AssertionError: "<class '__main__.AnyTests.test_repr.<locals>.Sub'>"!="<class'test.test_typing.AnyTests.test_repr.<locals>.Sub'>" -<class'__main__.AnyTests.test_repr.<locals>.Sub'> ? ^^^^^+<class'test.test_typing.AnyTests.test_repr.<locals>.Sub'> ? +++++++++^^^^----------------------------------------------------------------------Ran575testsin0.815sFAILED (failures=1, skipped=1)It's easy to fix, just need to replace "<class 'test.test_typing.AnyTests.test_repr.<locals>.Sub'>" to f"<class '{__name__}.AnyTests.test_repr.<locals>.Sub'>"
I'll soon send a PR
Linked PRs
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error