summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Podoprigora <kirill.bast9@mail.ru>2024-08-08 19:26:31 (GMT)
committerGitHub <noreply@github.com>2024-08-08 19:26:31 (GMT)
commit2037d8cbaea4aed7000e3265113814657a9aea54 (patch)
treeaea9539ad97fbb60888662908c3ae4480907a3ba
parent2d9d3a9f5319ce3f850341d116b63cc51869df3a (diff)
downloadcpython-2037d8cbaea4aed7000e3265113814657a9aea54.zip
cpython-2037d8cbaea4aed7000e3265113814657a9aea54.tar.gz
cpython-2037d8cbaea4aed7000e3265113814657a9aea54.tar.bz2
gh-122835: Fix module name in ``test_typing`` (#122836)
-rw-r--r--Lib/test/test_typing.py2
1 files changed, 1 insertions, 1 deletions
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})