]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Un-skip previously-broken `test_get_type_hints_modules_forwardref` (#149048)
authorThomas Kowalski <thom.kowa@gmail.com>
Mon, 27 Apr 2026 15:30:35 +0000 (17:30 +0200)
committerGitHub <noreply@github.com>
Mon, 27 Apr 2026 15:30:35 +0000 (08:30 -0700)
Lib/test/test_typing.py

index 6c3d67fb6b73833513fd4df32c9042d6fe62c399..5d19e3706802dd401fe0f12f6e7ad6602d3c3b7f 100644 (file)
@@ -14,7 +14,7 @@ import pickle
 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 @@ class GetTypeHintsTests(BaseTestCase):
         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)