Skip to content

Commit 81f85d0

Browse files
bpo-34181: Fix running Lib/test/test_typing.py as a script. (GH-8380) (GH-8385)
(cherry picked from commit 9613609) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 7cf7541 commit 81f85d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,9 @@ class W(X[int]):
651651

652652
def test_repr(self):
653653
self.assertEqual(repr(SimpleMapping),
654-
"<class 'test.test_typing.SimpleMapping'>")
654+
f"<class '{__name__}.SimpleMapping'>")
655655
self.assertEqual(repr(MySimpleMapping),
656-
"<class 'test.test_typing.MySimpleMapping'>")
656+
f"<class '{__name__}.MySimpleMapping'>")
657657

658658
def test_chain_repr(self):
659659
T = TypeVar('T')

0 commit comments

Comments
 (0)