Commit 96136092 authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

bpo-34181: Fix running Lib/test/test_typing.py as a script. (GH-8380)

parent 938045f3
......@@ -651,9 +651,9 @@ class GenericTests(BaseTestCase):
def test_repr(self):
self.assertEqual(repr(SimpleMapping),
"<class 'test.test_typing.SimpleMapping'>")
f"<class '{__name__}.SimpleMapping'>")
self.assertEqual(repr(MySimpleMapping),
"<class 'test.test_typing.MySimpleMapping'>")
f"<class '{__name__}.MySimpleMapping'>")
def test_chain_repr(self):
T = TypeVar('T')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment