[Python-checkins] closes bpo-33758: Skip test_get_type_hints_modules_forwardref. (GH-13977)

Miss Islington (bot) webhook-mailer at python.org
Tue Jun 11 12:52:43 EDT 2019


https://github.com/python/cpython/commit/fad89046e14b271b2eeb399f7c7b45131d65e5f2
commit: fad89046e14b271b2eeb399f7c7b45131d65e5f2
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-06-11T09:52:15-07:00
summary:

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 910b3fcb01c29f18ffd53086e36cd2cb9e5fae55)

Co-authored-by: Benjamin Peterson <benjamin at python.org>

files:
M Lib/test/test_typing.py

diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py
index ffd2007ee70d..b396283a02ee 100644
--- a/Lib/test/test_typing.py
+++ b/Lib/test/test_typing.py
@@ -3,7 +3,7 @@
 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
@@ -1804,7 +1804,7 @@ def test_get_type_hints_modules(self):
         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



More information about the Python-checkins mailing list