From f66552024d7faae96905fd3ed7db16c0d46190d7 Mon Sep 17 00:00:00 2001 From: Thomas Kowalski Date: Mon, 27 Apr 2026 17:30:35 +0200 Subject: [PATCH] [3.14] Un-skip previously-broken `test_get_type_hints_modules_forwardref` --- Lib/test/test_typing.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index b30e30d1751ed7..2c6a5c7466032d 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -13,7 +13,7 @@ import pickle import re import sys -from unittest import TestCase, main, skip +from unittest import TestCase, main from unittest.mock import patch from copy import copy, deepcopy @@ -6686,11 +6686,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)