Skip to content

Commit

Permalink
[3.11] gh-104036: Fix direct invocation of test_typing (GH-104037) (#…
Browse files Browse the repository at this point in the history
…104039)

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
miss-islington and Eclips4 authored May 1, 2023
1 parent d8055b8 commit 1be8bed
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 1be8bed

Please sign in to comment.