Skip to content

Commit 3a51933

Browse files
test: restore previously-broken test for typing
1 parent 62792c8 commit 3a51933

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
@@ -14,7 +14,7 @@
1414
import re
1515
import sys
1616
import warnings
17-
from unittest import TestCase, main, skip
17+
from unittest import TestCase, main
1818
from unittest.mock import patch
1919
from copy import copy, deepcopy
2020

@@ -6796,11 +6796,7 @@ def test_get_type_hints_modules(self):
67966796
self.assertEqual(gth(ann_module2), {})
67976797
self.assertEqual(gth(ann_module3), {})
67986798

6799-
@skip("known bug")
68006799
def test_get_type_hints_modules_forwardref(self):
6801-
# FIXME: This currently exposes a bug in typing. Cached forward references
6802-
# don't account for the case where there are multiple types of the same
6803-
# name coming from different modules in the same program.
68046800
mgc_hints = {'default_a': Optional[mod_generics_cache.A],
68056801
'default_b': Optional[mod_generics_cache.B]}
68066802
self.assertEqual(gth(mod_generics_cache), mgc_hints)

0 commit comments

Comments
 (0)