Skip to content

Commit

Permalink
build: adjust pybehave for pypy 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed May 12, 2023
1 parent 6c36639 commit fd1938b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions coverage/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,10 @@ class PYBEHAVIOR:

# Does Python conform to PEP626, Precise line numbers for debugging and other tools.
# https://www.python.org/dev/peps/pep-0626
pep626 = CPYTHON and (PYVERSION > (3, 10, 0, "alpha", 4))
pep626 = (PYVERSION > (3, 10, 0, "alpha", 4))

# Is "if __debug__" optimized away?
if PYPY:
optimize_if_debug = True
else:
optimize_if_debug = not pep626
optimize_if_debug = not pep626

# Is "if not __debug__" optimized away? The exact details have changed
# across versions.
Expand Down

0 comments on commit fd1938b

Please sign in to comment.