summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-10-10 13:12:16 -0400
committerNed Batchelder <ned@nedbatchelder.com>2020-10-10 15:33:46 -0400
commitae35c27be0062721c82f1967e9eb7d6f041e5258 (patch)
treed6867d32e42d232e8e6a4f37c3c1b46c005fecad /tests
parent4e8f18ecf5b357ba2bc058dec250da7388892da2 (diff)
downloadpython-coveragepy-git-ae35c27be0062721c82f1967e9eb7d6f041e5258.tar.gz
PyPy 3.7 doesn't act exactly like CPython 3.7
Diffstat (limited to 'tests')
-rw-r--r--tests/test_parser.py2
-rw-r--r--tests/test_process.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py
index 03bf25de..0e6a0859 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -214,7 +214,7 @@ class PythonParserTest(CoverageTest):
expected_arcs = set(arcz_to_arcs(".1 14 48 8. .2 2. -8A A-8"))
expected_exits = {1: 1, 2: 1, 4: 1, 8: 1, 10: 1}
- if env.PYVERSION >= (3, 7, 0, 'beta', 5):
+ if (not env.PYPY) and (env.PYVERSION >= (3, 7, 0, 'beta', 5)):
# 3.7 changed how functions with only docstrings are numbered.
expected_arcs.update(set(arcz_to_arcs("-46 6-4")))
expected_exits.update({6: 1})
diff --git a/tests/test_process.py b/tests/test_process.py
index 25f1fcc9..bf0e1ac0 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -743,7 +743,7 @@ class ProcessTest(CoverageTest):
self.assertGreater(line_counts(data)['os.py'], 50)
@xfail(
- env.PYPY3 and env.PYPYVERSION >= (7, 1, 1),
+ env.PYPY3 and ((7, 1, 1) <= env.PYPYVERSION < (7, 3)),
"https://bitbucket.org/pypy/pypy/issues/3074"
)
def test_lang_c(self):