Skip to content

Commit

Permalink
pythongh-104036: Fix direct invocation of test_typing (pythonGH-104037)
Browse files Browse the repository at this point in the history
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
1 parent d8055b8 commit fc66752
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit fc66752

Please sign in to comment.