diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-12-27 06:57:18 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-12-27 07:20:49 -0500 |
commit | 5af6270dd72f2a217823a32bf7141d3f7c1a2a92 (patch) | |
tree | edf3c7dc2a3f71ca31a8269b387e7f08ebdf49b9 /tests/test_parser.py | |
parent | 769ea88198e15d4c549ed57b41abc6b996be68c1 (diff) | |
download | python-coveragepy-git-5af6270dd72f2a217823a32bf7141d3f7c1a2a92.tar.gz |
fix: adjust some PyPy behaviors. #1515
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r-- | tests/test_parser.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py index b13c32fe..057b9244 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -15,7 +15,7 @@ from coverage.exceptions import NotPython from coverage.parser import ast_dump, PythonParser from tests.coveragetest import CoverageTest, TESTS_DIR -from tests.helpers import arcz_to_arcs, re_lines, xfail_pypy_3749 +from tests.helpers import arcz_to_arcs, re_lines, xfail_pypy38 class PythonParserTest(CoverageTest): @@ -140,7 +140,7 @@ class PythonParserTest(CoverageTest): ''' """) - @xfail_pypy_3749 + @xfail_pypy38 def test_decorator_pragmas(self): parser = self.parse_source("""\ # 1 @@ -176,7 +176,7 @@ class PythonParserTest(CoverageTest): assert parser.raw_statements == raw_statements assert parser.statements == {8} - @xfail_pypy_3749 + @xfail_pypy38 def test_decorator_pragmas_with_colons(self): # A colon in a decorator expression would confuse the parser, # ending the exclusion of the decorated function. @@ -211,7 +211,6 @@ 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): |