Skip to content

Commit fad8904

Browse files
closes bpo-33758: Skip test_get_type_hints_modules_forwardref. (GH-13977)
This test "works" if things are run in the right order, so it's better to use @Skip than @expectedfailure here. (cherry picked from commit 910b3fc) Co-authored-by: Benjamin Peterson <[email protected]>
1 parent 5d1d4e3 commit fad8904

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pickle
44
import re
55
import sys
6-
from unittest import TestCase, main, skipUnless, SkipTest, expectedFailure
6+
from unittest import TestCase, main, skipUnless, SkipTest, skip
77
from copy import copy, deepcopy
88

99
from typing import Any, NoReturn
@@ -1804,7 +1804,7 @@ def test_get_type_hints_modules(self):
18041804
self.assertEqual(gth(ann_module2), {})
18051805
self.assertEqual(gth(ann_module3), {})
18061806

1807-
@expectedFailure
1807+
@skip("known bug")
18081808
def test_get_type_hints_modules_forwardref(self):
18091809
# FIXME: This currently exposes a bug in typing. Cached forward references
18101810
# don't account for the case where there are multiple types of the same

0 commit comments

Comments
 (0)