summaryrefslogtreecommitdiff
path: root/tests/test_parser.py
diff options
context:
space:
mode:
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):