Skip to content

Commit

Permalink
Fix bug with missing negative line numbers on PyPy3 7.1 #943
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Feb 24, 2020
1 parent bbf3c78 commit 70b333e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.rst
Expand Up @@ -26,6 +26,10 @@ Unreleased

- Updated Python 3.9 support to 3.9a3.

- Fixed a bug with missing negative line numbers on PyPy3 7.1 (`issue 943`_).

.. _issue 943: https://github.com/nedbat/coveragepy/issues/943


.. _changes_503:

Expand Down
2 changes: 1 addition & 1 deletion coverage/env.py
Expand Up @@ -57,7 +57,7 @@ class PYBEHAVIOR(object):
unpackings_pep448 = (PYVERSION >= (3, 5))

# Can co_lnotab have negative deltas?
negative_lnotab = (PYVERSION >= (3, 6))
negative_lnotab = (PYVERSION >= (3, 6)) and (PYPYVERSION >= (7, 2))

# Do .pyc files conform to PEP 552? Hash-based pyc's.
hashed_pyc_pep552 = (PYVERSION >= (3, 7, 0, 'alpha', 4))
Expand Down

0 comments on commit 70b333e

Please sign in to comment.