diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2020-01-18 14:00:51 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2020-01-18 14:00:51 -0500 |
commit | 75c3e5d56a18f7f9b6f30cca74fa1fa0aed160be (patch) | |
tree | 9e679908d05e95a379b1a1fc9861532def8eb4b3 /tests/test_process.py | |
parent | 0643e35348e8735c4f2c3909871d5a146998d77f (diff) | |
download | python-coveragepy-git-75c3e5d56a18f7f9b6f30cca74fa1fa0aed160be.tar.gz |
Better xfail mechanism
Diffstat (limited to 'tests/test_process.py')
-rw-r--r-- | tests/test_process.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_process.py b/tests/test_process.py index 6ca4571c..e4c0ae8f 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -23,7 +23,7 @@ from coverage.data import line_counts from coverage.files import python_reported_file from coverage.misc import output_encoding -from tests.coveragetest import CoverageTest, TESTS_DIR +from tests.coveragetest import CoverageTest, TESTS_DIR, xfail from tests.helpers import re_lines @@ -742,12 +742,14 @@ class ProcessTest(CoverageTest): # about 5. self.assertGreater(line_counts(data)['os.py'], 50) + @xfail( + env.PYPY3 and env.PYPYVERSION >= (7, 1, 1), + "https://bitbucket.org/pypy/pypy/issues/3074" + ) def test_lang_c(self): if env.JYTHON: # Jython as of 2.7.1rc3 won't compile a filename that isn't utf8. self.skipTest("Jython can't handle this test") - if env.PYPY3 and env.PYPYVERSION >= (7, 1, 1): # pragma: obscure - self.xfail("https://bitbucket.org/pypy/pypy/issues/3074") # LANG=C forces getfilesystemencoding on Linux to 'ascii', which causes # failures with non-ascii file names. We don't want to make a real file # with strange characters, though, because that gets the test runners |