]> granicus.if.org Git - python/commitdiff
closes bpo-33758: Skip test_get_type_hints_modules_forwardref. (GH-13977)
authorBenjamin Peterson <benjamin@python.org>
Tue, 11 Jun 2019 16:18:31 +0000 (09:18 -0700)
committerGitHub <noreply@github.com>
Tue, 11 Jun 2019 16:18:31 +0000 (09:18 -0700)
This test "works" if things are run in the right order, so it's better to use @skip than @expectedFailure here.

Lib/test/test_typing.py

index a65d639fe9e1122d59322a754e064a0f00ec3f90..ba001c3462fcf50985d96e9e0382b76dec33029e 100644 (file)
@@ -3,7 +3,7 @@ import collections
 import pickle
 import re
 import sys
-from unittest import TestCase, main, skipUnless, SkipTest, expectedFailure
+from unittest import TestCase, main, skipUnless, SkipTest, skip
 from copy import copy, deepcopy
 
 from typing import Any, NoReturn
@@ -2654,7 +2654,7 @@ class GetTypeHintTests(BaseTestCase):
         self.assertEqual(gth(ann_module2), {})
         self.assertEqual(gth(ann_module3), {})
 
-    @expectedFailure
+    @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