diff --git a/CHANGES.rst b/CHANGES.rst index 952a975bb..e0b2a41ab 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -28,6 +28,9 @@ Unreleased drive than the current directory. (`pull 1430`_, fixing `issue 1428`_). Thanks, Lorenzo Micò. +- Fix path calculations when running in the root directory, as you might do in + a Docker container: `pull 1403`_, thanks Arthur Rio. + - Filtering in the HTML report wouldn't work when reloading the index page. This is now fixed (`pull 1413`_). Thanks, Marc Legendre. @@ -36,6 +39,7 @@ Unreleased .. _issue 972: https://github.com/nedbat/coveragepy/issues/972 .. _pull 1347: https://github.com/nedbat/coveragepy/pull/1347 +.. _pull 1403: https://github.com/nedbat/coveragepy/issues/1403 .. _pull 1405: https://github.com/nedbat/coveragepy/issues/1405 .. _pull 1413: https://github.com/nedbat/coveragepy/issues/1413 .. _pull 1428: https://github.com/nedbat/coveragepy/issues/1428 diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 4c6dfaf15..470dc25f5 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -21,6 +21,7 @@ Arcadiy Ivanov Aron Griffis Artem Dayneko Arthur Deygin +Arthur Rio Ben Carlsson Ben Finney Benjamin Schubert diff --git a/tests/test_files.py b/tests/test_files.py index 28a98fb84..9f7f62784 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -11,8 +11,10 @@ from coverage import env, files from coverage.exceptions import ConfigError -from coverage.files import (FnmatchMatcher, ModuleMatcher, PathAliases, TreeMatcher, abs_file, - actual_path, find_python_files, flat_rootname, fnmatches_to_regex) +from coverage.files import ( + FnmatchMatcher, ModuleMatcher, PathAliases, TreeMatcher, abs_file, + actual_path, find_python_files, flat_rootname, fnmatches_to_regex, +) from tests.coveragetest import CoverageTest