Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-104036: Fix direct invocation of test_typing (GH-104037)
Previously, `python -m test test_typing` worked, but `python Lib/test/test_typing.py` did not.
(cherry picked from commit 4181d07)

Co-authored-by: Kirill Podoprigora <[email protected]>
  • Loading branch information
Eclips4 authored and miss-islington committed May 1, 2023
commit fc6675216c2d210ecff0fb7b5310993348e12afb
2 changes: 1 addition & 1 deletion Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def test_repr(self):
class Sub(Any): pass
self.assertEqual(
repr(Sub),
"<class 'test.test_typing.AnyTests.test_repr.<locals>.Sub'>",
f"<class '{__name__}.AnyTests.test_repr.<locals>.Sub'>",
)

def test_errors(self):
Expand Down