gh-122835: Fix module name in `test_typing` (#122836)

This commit is contained in:
Kirill Podoprigora 2024-08-08 22:26:31 +03:00 committed by GitHub
parent 2d9d3a9f53
commit 2037d8cbae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8877,7 +8877,7 @@ class TypedDictTests(BaseTestCase):
class Y(TypedDict):
a: None
b: "int"
fwdref = ForwardRef('int', module='test.test_typing')
fwdref = ForwardRef('int', module=__name__)
self.assertEqual(Y.__annotations__, {'a': type(None), 'b': fwdref})
self.assertEqual(Y.__annotate__(annotationlib.Format.FORWARDREF), {'a': type(None), 'b': fwdref})