From 334bdceeff4215a6d463f22b9241ff7900413eea Mon Sep 17 00:00:00 2001 From: James Knight Date: Sun, 5 Dec 2021 14:24:14 -0500 Subject: [PATCH] tox: support coverage on win32 When invoking the `coverage` on a Windows environment, the following exception may generate: ... raise CoverageException(f"Couldn't read {fname!r} as a config file") coverage.exceptions.CoverageException: Couldn't read 'C:mycodesphinx/setup.cfg' as a config file ERROR: InvocationError for command 'C:\mycode\sphinx\.tox\coverage\Scripts\python.EXE' -X dev -m pytest --durations 25 (exited with code 1) Enclosing with configuration file with quotes can improve the handling of a provided path on multiple platform types. Signed-off-by: James Knight --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index e703cd646..c006fa5a6 100644 --- a/tox.ini +++ b/tox.ini @@ -64,7 +64,7 @@ basepython = python3 description = Run code coverage checks. setenv = - PYTEST_ADDOPTS = --cov sphinx --cov-config {toxinidir}/setup.cfg + PYTEST_ADDOPTS = --cov sphinx --cov-config "{toxinidir}/setup.cfg" commands = {[testenv]commands} coverage report