From 2037d8cbaea4aed7000e3265113814657a9aea54 Mon Sep 17 00:00:00 2001 From: Kirill Podoprigora Date: Thu, 8 Aug 2024 22:26:31 +0300 Subject: gh-122835: Fix module name in ``test_typing`` (#122836) --- Lib/test/test_typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 8baa415..ef2ad30 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -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}) -- cgit v0.12