summaryrefslogtreecommitdiff
path: root/CHANGES.rst
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-10-11 15:22:18 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-10-11 16:15:40 -0400
commit260359756694728cd13f8c8715dddf7c6e2f371d (patch)
tree4ed1f110286dd34c53b9d1169d1d94c83bc89ac3 /CHANGES.rst
parentfdaa8224ccfa16233fda0c84860ef95ca073ee95 (diff)
downloadpython-coveragepy-git-260359756694728cd13f8c8715dddf7c6e2f371d.tar.gz
fix: source modules need to be re-imported. #1232
Diffstat (limited to 'CHANGES.rst')
-rw-r--r--CHANGES.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 696dd4b0..2b7add47 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -27,11 +27,20 @@ Unreleased
was ignored as a third-party package. That problem (`issue 1231`_) is now
fixed.
+- Packages named as "source packages" (with ``source``, or ``source_pkgs``, or
+ pytest-cov's ``--cov``) might have been only partially measured. Their
+ top-level statements could be marked as unexecuted, because they were
+ imported by coverage.py before measurement began (`issue 1232`_). This is
+ now fixed, but the package will be imported twice, once by coverage.py, then
+ again by your test suite. This could cause problems if importing the package
+ has side effects.
+
- The :meth:`.CoverageData.contexts_by_lineno` method was documented to return
a dict, but was returning a defaultdict. Now it returns a plain dict. It
also no longer returns negative numbered keys.
.. _issue 1231: https://github.com/nedbat/coveragepy/issues/1231
+.. _issue 1232: https://github.com/nedbat/coveragepy/issues/1232
.. _changes_601: