summaryrefslogtreecommitdiff
path: root/CHANGES.rst
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-05-31 19:37:53 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-05-31 19:37:53 -0400
commit1157999dc5c6c3aa3129a7cd4bf249fe73598501 (patch)
treecba407bacb180fb8fcb46a1b5eaf7da2e0fd88fb /CHANGES.rst
parent65d9e0edbca0dc893ca70fbf64969e2ddc5a3680 (diff)
downloadpython-coveragepy-git-1157999dc5c6c3aa3129a7cd4bf249fe73598501.tar.gz
fix: --fail-under=100 could report 100 is less than 100.
Use the same rounding rules for the fail-under message that are used for totals everywhere else, so that it won't say: total of 100 is less than fail-under=100
Diffstat (limited to 'CHANGES.rst')
-rw-r--r--CHANGES.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 205ef0ab..b15d6298 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -35,11 +35,16 @@ Unreleased
- Warnings generated by coverage.py are now real Python warnings.
+- Using ``--fail-under=100`` with coverage near 100% could result in the
+ self-contradictory message :code:`total of 100 is less than fail-under=100`.
+ This bug (`issue 1168`_) is now fixed.
+
- The ``COVERAGE_DEBUG_FILE`` environment variable now accepts ``stdout`` and
``stderr`` to write to those destinations.
.. _Django coverage plugin: https://pypi.org/project/django-coverage-plugin/
.. _issue 1150: https://github.com/nedbat/coveragepy/issues/1150
+.. _issue 1168: https://github.com/nedbat/coveragepy/issues/1168
.. _changes_56b1: