nedbat/coveragepy
### [`v6.0.2`](https://togithub.com/nedbat/coveragepy/blob/master/CHANGES.rst#Version-602--2021-10-11)
[Compare Source](https://togithub.com/nedbat/coveragepy/compare/6.0.1...6.0.2)
- Namespace packages being measured weren't properly handled by the new code
that ignores third-party packages. If the namespace package was installed, it
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](https://togithub.com/nedbat/coveragepy/issues/1231)1
.. \_issue 1232[https://github.com/nedbat/coveragepy/issues/1232](https://togithub.com/nedbat/coveragepy/issues/1232)32
.. \_changes\_601:
### [`v6.0.1`](https://togithub.com/nedbat/coveragepy/blob/master/CHANGES.rst#Version-601--2021-10-06)
[Compare Source](https://togithub.com/nedbat/coveragepy/compare/6.0...6.0.1)
- In 6.0, the coverage.py exceptions moved from coverage.misc to
coverage.exceptions. These exceptions are not part of the public supported
API, CoverageException is. But a number of other third-party packages were
importing the exceptions from coverage.misc, so they are now available from
there again (`issue 1226`\_).
- Changed an internal detail of how tomli is imported, so that tomli can use
coverage.py for their own test suite (`issue 1228`\_).
- Defend against an obscure possibility under code obfuscation, where a
function can have an argument called "self", but no local named "self"
(`pull request 1210`\_). Thanks, Ben Carlsson.
.. \_pull request 1210:[https://github.com/nedbat/coveragepy/pull/1210](https://togithub.com/nedbat/coveragepy/pull/1210)0
.. \_issue 1226[https://github.com/nedbat/coveragepy/issues/1226](https://togithub.com/nedbat/coveragepy/issues/1226)26
.. \_issue 122[https://github.com/nedbat/coveragepy/issues/1228](https://togithub.com/nedbat/coveragepy/issues/1228)228
.. \_changes\_60:
### [`v6.0`](https://togithub.com/nedbat/coveragepy/blob/master/CHANGES.rst#Version-602--2021-10-11)
[Compare Source](https://togithub.com/nedbat/coveragepy/compare/coverage-5.5...6.0)
- Namespace packages being measured weren't properly handled by the new code
that ignores third-party packages. If the namespace package was installed, it
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](https://togithub.com/nedbat/coveragepy/issues/1231)1
.. \_issue 1232[https://github.com/nedbat/coveragepy/issues/1232](https://togithub.com/nedbat/coveragepy/issues/1232)32
.. \_changes\_601:
Configuration
📅 Schedule: "before 1am on Tuesday" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR contains the following updates:
==5.5
->==6.0.2
Release Notes
nedbat/coveragepy
### [`v6.0.2`](https://togithub.com/nedbat/coveragepy/blob/master/CHANGES.rst#Version-602--2021-10-11) [Compare Source](https://togithub.com/nedbat/coveragepy/compare/6.0.1...6.0.2) - Namespace packages being measured weren't properly handled by the new code that ignores third-party packages. If the namespace package was installed, it 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](https://togithub.com/nedbat/coveragepy/issues/1231)1 .. \_issue 1232[https://github.com/nedbat/coveragepy/issues/1232](https://togithub.com/nedbat/coveragepy/issues/1232)32 .. \_changes\_601: ### [`v6.0.1`](https://togithub.com/nedbat/coveragepy/blob/master/CHANGES.rst#Version-601--2021-10-06) [Compare Source](https://togithub.com/nedbat/coveragepy/compare/6.0...6.0.1) - In 6.0, the coverage.py exceptions moved from coverage.misc to coverage.exceptions. These exceptions are not part of the public supported API, CoverageException is. But a number of other third-party packages were importing the exceptions from coverage.misc, so they are now available from there again (`issue 1226`\_). - Changed an internal detail of how tomli is imported, so that tomli can use coverage.py for their own test suite (`issue 1228`\_). - Defend against an obscure possibility under code obfuscation, where a function can have an argument called "self", but no local named "self" (`pull request 1210`\_). Thanks, Ben Carlsson. .. \_pull request 1210:[https://github.com/nedbat/coveragepy/pull/1210](https://togithub.com/nedbat/coveragepy/pull/1210)0 .. \_issue 1226[https://github.com/nedbat/coveragepy/issues/1226](https://togithub.com/nedbat/coveragepy/issues/1226)26 .. \_issue 122[https://github.com/nedbat/coveragepy/issues/1228](https://togithub.com/nedbat/coveragepy/issues/1228)228 .. \_changes\_60: ### [`v6.0`](https://togithub.com/nedbat/coveragepy/blob/master/CHANGES.rst#Version-602--2021-10-11) [Compare Source](https://togithub.com/nedbat/coveragepy/compare/coverage-5.5...6.0) - Namespace packages being measured weren't properly handled by the new code that ignores third-party packages. If the namespace package was installed, it 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](https://togithub.com/nedbat/coveragepy/issues/1231)1 .. \_issue 1232[https://github.com/nedbat/coveragepy/issues/1232](https://togithub.com/nedbat/coveragepy/issues/1232)32 .. \_changes\_601:Configuration
📅 Schedule: "before 1am on Tuesday" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.