https://github.com/python/cpython/commit/a386a52d8c093381792e39f93eb1df63d1584b9e
commit: a386a52d8c093381792e39f93eb1df63d1584b9e
branch: main
author: Thomas Kowalski <[email protected]>
committer: JelleZijlstra <[email protected]>
date: 2026-04-27T08:30:35-07:00
summary:
Un-skip previously-broken `test_get_type_hints_modules_forwardref` (#149048)
files:
M Lib/test/test_typing.py
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py
index 6c3d67fb6b7383..5d19e3706802dd 100644
--- a/Lib/test/test_typing.py
+++ b/Lib/test/test_typing.py
@@ -14,7 +14,7 @@
import re
import sys
import warnings
-from unittest import TestCase, main, skip
+from unittest import TestCase, main
from unittest.mock import patch
from copy import copy, deepcopy
@@ -6796,11 +6796,7 @@ def test_get_type_hints_modules(self):
self.assertEqual(gth(ann_module2), {})
self.assertEqual(gth(ann_module3), {})
- @skip("known bug")
def test_get_type_hints_modules_forwardref(self):
- # FIXME: This currently exposes a bug in typing. Cached forward
references
- # don't account for the case where there are multiple types of the same
- # name coming from different modules in the same program.
mgc_hints = {'default_a': Optional[mod_generics_cache.A],
'default_b': Optional[mod_generics_cache.B]}
self.assertEqual(gth(mod_generics_cache), mgc_hints)
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]