diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2018-07-21 22:46:26 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-21 22:46:26 +0300 |
| commit | 961360923e7997a04833652623ea549b0dc02262 (patch) | |
| tree | 6c95d1ca1634e195d9ce544af015381e95ecfcdb | |
| parent | 938045f335b52ddb47076e9fbe4229a33b4bd9be (diff) | |
| download | cpython-git-961360923e7997a04833652623ea549b0dc02262.tar.gz | |
bpo-34181: Fix running Lib/test/test_typing.py as a script. (GH-8380)
| -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 904cd93691..6d8cc5319f 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') |
