Skip to content

Commit fc66752

Browse files
Eclips4miss-islington
authored andcommitted
pythongh-104036: Fix direct invocation of test_typing (pythonGH-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]>
1 parent d8055b8 commit fc66752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_typing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def test_repr(self):
114114
class Sub(Any): pass
115115
self.assertEqual(
116116
repr(Sub),
117-
"<class 'test.test_typing.AnyTests.test_repr.<locals>.Sub'>",
117+
f"<class '{__name__}.AnyTests.test_repr.<locals>.Sub'>",
118118
)
119119

120120
def test_errors(self):

0 commit comments

Comments
 (0)