bpo-34181: Fix running Lib/test/test_typing.py as a script. (GH-8380)
This commit is contained in:
parent
938045f335
commit
961360923e
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue