diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-07-21 19:46:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-21 19:46:26 (GMT) |
commit | 961360923e7997a04833652623ea549b0dc02262 (patch) | |
tree | 6c95d1ca1634e195d9ce544af015381e95ecfcdb /Lib | |
parent | 938045f335b52ddb47076e9fbe4229a33b4bd9be (diff) | |
download | cpython-961360923e7997a04833652623ea549b0dc02262.zip cpython-961360923e7997a04833652623ea549b0dc02262.tar.gz cpython-961360923e7997a04833652623ea549b0dc02262.tar.bz2 |
bpo-34181: Fix running Lib/test/test_typing.py as a script. (GH-8380)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_typing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 904cd93..6d8cc53 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -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') |