Skip to content

Commit 0cd8123

Browse files
[3.14] Un-skip previously-broken test_get_type_hints_modules_forward_ref (#149053)
1 parent bb8d6a0 commit 0cd8123

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Lib/test/test_typing.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import pickle
1414
import re
1515
import sys
16-
from unittest import TestCase, main, skip
16+
from unittest import TestCase, main
1717
from unittest.mock import patch
1818
from copy import copy, deepcopy
1919

@@ -6686,11 +6686,7 @@ def test_get_type_hints_modules(self):
66866686
self.assertEqual(gth(ann_module2), {})
66876687
self.assertEqual(gth(ann_module3), {})
66886688

6689-
@skip("known bug")
66906689
def test_get_type_hints_modules_forwardref(self):
6691-
# FIXME: This currently exposes a bug in typing. Cached forward references
6692-
# don't account for the case where there are multiple types of the same
6693-
# name coming from different modules in the same program.
66946690
mgc_hints = {'default_a': Optional[mod_generics_cache.A],
66956691
'default_b': Optional[mod_generics_cache.B]}
66966692
self.assertEqual(gth(mod_generics_cache), mgc_hints)

0 commit comments

Comments
 (0)