Skip to content

Commit

Permalink
PyPy 3.7 doesn't act exactly like CPython 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Oct 10, 2020
1 parent 4e8f18e commit ae35c27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion coverage/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class PYBEHAVIOR(object):
# used to be an empty string (meaning the current directory). It changed
# to be the actual path to the current directory, so that os.chdir wouldn't
# affect the outcome.
actual_syspath0_dash_m = (PYVERSION >= (3, 7, 0, 'beta', 3))
actual_syspath0_dash_m = (not PYPY) and (PYVERSION >= (3, 7, 0, 'beta', 3))

# When a break/continue/return statement in a try block jumps to a finally
# block, does the finally block do the break/continue/return (pre-3.8), or
Expand Down
2 changes: 1 addition & 1 deletion tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def bar(self):
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})
Expand Down
2 changes: 1 addition & 1 deletion tests/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ def test_fullcoverage(self): # pragma: no metacov
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):
Expand Down

0 comments on commit ae35c27

Please sign in to comment.