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

This commit is contained in:
Serhiy Storchaka 2018-07-21 22:46:26 +03:00 committed by GitHub
parent 938045f335
commit 961360923e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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')