Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Running test_typing file directly fails #104036

Copy link
Copy link
Closed
@Eclips4

Description

@Eclips4
Issue body actions
C:\Users\KIRILL-1\CLionProjects\cpython> ./python Lib/test/test_typing.py
Running Debug|x64 interpreter...
.............................F....................................................................................................
..........................................................................................................s.......................
..................................................................................................................................
..................................................................................................................................
.......................................................
======================================================================
FAIL: test_repr (__main__.AnyTests.test_repr)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\KIRILL-1\CLionProjects\cpython\Lib\test\test_typing.py", line 118, in test_repr
    self.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'>
?         +++++++++ ^^^  ^


----------------------------------------------------------------------
Ran 575 tests in 0.815s

FAILED (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

No one assigned

    Labels

    testsTests in the Lib/test dirTests in the Lib/test dirtopic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.