summaryrefslogtreecommitdiff
path: root/tests/test_parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-05-21 09:52:21 -0400
committerNed Batchelder <ned@nedbatchelder.com>2022-05-21 10:05:14 -0400
commitd4c09f9084cbe771a177b0d62d3a365427a9e2fb (patch)
tree329e9cefd7277fd2b90cc190733654cf0440a386 /tests/test_parser.py
parent50e518edbacfc6609f4b5ca8ede77b27c5eaa06d (diff)
downloadpython-coveragepy-git-d4c09f9084cbe771a177b0d62d3a365427a9e2fb.tar.gz
test: xfail decorator tests that fail on PyPy 3.8 (7.3.10alpha)
https://foss.heptapod.net/pypy/pypy/-/issues/3749
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r--tests/test_parser.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py
index cc5d6ba0..a20741ad 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -14,7 +14,7 @@ from coverage.exceptions import NotPython
from coverage.parser import ast_dump, ast_parse, PythonParser
from tests.coveragetest import CoverageTest, TESTS_DIR
-from tests.helpers import arcz_to_arcs, re_lines
+from tests.helpers import arcz_to_arcs, re_lines, xfail_pypy_3749
class PythonParserTest(CoverageTest):
@@ -139,10 +139,7 @@ class PythonParserTest(CoverageTest):
'''
""")
- @pytest.mark.xfail(
- env.PYPY and env.PYPYVERSION == (7, 3, 0),
- reason="https://bitbucket.org/pypy/pypy/issues/3139",
- )
+ @xfail_pypy_3749
def test_decorator_pragmas(self):
parser = self.parse_source("""\
# 1
@@ -178,6 +175,7 @@ class PythonParserTest(CoverageTest):
assert parser.raw_statements == raw_statements
assert parser.statements == {8}
+ @xfail_pypy_3749
def test_decorator_pragmas_with_colons(self):
# A colon in a decorator expression would confuse the parser,
# ending the exclusion of the decorated function.
@@ -212,6 +210,7 @@ class PythonParserTest(CoverageTest):
assert parser.raw_statements == {1, 2, 3, 5, 6, 7, 8}
assert parser.statements == {1, 2, 3}
+ @xfail_pypy_3749
def test_empty_decorated_function(self):
parser = self.parse_source("""\
def decorator(func):