mirror of
https://github.com/python/cpython.git
synced 2025-08-16 06:40:56 +00:00
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 910b3fcb01
)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
This commit is contained in:
parent
583ff84351
commit
1c31d19e35
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ import collections
|
||||||
import pickle
|
import pickle
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
from unittest import TestCase, main, skipUnless, SkipTest, expectedFailure
|
from unittest import TestCase, main, skipUnless, SkipTest, skip
|
||||||
from copy import copy, deepcopy
|
from copy import copy, deepcopy
|
||||||
|
|
||||||
from typing import Any, NoReturn
|
from typing import Any, NoReturn
|
||||||
|
@ -2654,7 +2654,7 @@ class GetTypeHintTests(BaseTestCase):
|
||||||
self.assertEqual(gth(ann_module2), {})
|
self.assertEqual(gth(ann_module2), {})
|
||||||
self.assertEqual(gth(ann_module3), {})
|
self.assertEqual(gth(ann_module3), {})
|
||||||
|
|
||||||
@expectedFailure
|
@skip("known bug")
|
||||||
def test_get_type_hints_modules_forwardref(self):
|
def test_get_type_hints_modules_forwardref(self):
|
||||||
# FIXME: This currently exposes a bug in typing. Cached forward references
|
# 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
|
# don't account for the case where there are multiple types of the same
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue