gh-104036: Fix direct invocation of test_typing (#104037)

Previously, `python -m test test_typing` worked, but `python Lib/test/test_typing.py` did not.
This commit is contained in:
Kirill Podoprigora 2023-05-01 16:42:59 +03:00 committed by GitHub
parent 59c27fa5cb
commit 4181d078fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,7 +117,7 @@ class AnyTests(BaseTestCase):
class Sub(Any): pass
self.assertEqual(
repr(Sub),
"<class 'test.test_typing.AnyTests.test_repr.<locals>.Sub'>",
f"<class '{__name__}.AnyTests.test_repr.<locals>.Sub'>",
)
def test_errors(self):