8000 Tests: Mark three tests as xfailing only on PY2 · thecodingchicken/python-future@a86e903 · GitHub
[go: up one dir, main page]

Skip to content

Commit a86e903

Browse files
committed
Tests: Mark three tests as xfailing only on PY2
1 parent 77b42cf commit a86e903

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_future/test_standard_library.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_is_py2_stdlib_module(self):
8282
# if '.' not in oldname:
8383
# self.assertEqual(oldmod, newmod)
8484

85-
@unittest.expectedFailure
85+
@expectedFailurePY2
8686
def test_suspend_hooks(self):
8787
"""
8888
Code like the try/except block here appears in Pyflakes v0.6.1. This
@@ -102,7 +102,7 @@ def test_suspend_hooks(self):
102102
# The import should succeed again now:
103103
import builtins
104104

105-
@unittest.expectedFailure
105+
@expectedFailurePY2
106106
def test_disable_hooks(self):
107107
"""
108108
Tests the old (deprecated) names. These deprecated aliases should be
@@ -139,7 +139,7 @@ def test_disable_hooks(self):
139139
self.assertTrue(standard_library.detect_hooks())
140140
self.assertTrue(len(old_meta_path) == len(sys.meta_path))
141141

142-
@unittest.expectedFailure
142+
@expectedFailurePY2
143143
def test_remove_hooks2(self):
144144
"""
145145
As above, but with the new names

0 commit comments

Comments
 (0)
0