mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-34181: Fix running Lib/test/test_typing.py as a script. (GH-8380)
This commit is contained in:
parent
938045f335
commit
961360923e
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue