Skip to content

Commit fdc43ec

Browse files
committed
Allow COV_CORE_SOURCE to be empty (it'd be converted to None). Also update docs regarding using pytest-cov with other pytest plugins.
1 parent 65959fc commit fdc43ec

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/plugins.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Alternatively you can have this in ``tox.ini`` (if you're using `Tox <https://to
1414

1515
[testenv]
1616
setenv =
17-
COV_CORE_SOURCE={toxinidir}/src
17+
COV_CORE_SOURCE=
1818
COV_CORE_CONFIG={toxinidir}/.coveragerc
19-
COV_CORE_DATAFILE={toxinidir}/.coverage.eager
19+
COV_CORE_DATAFILE={toxinidir}/.coverage
2020

2121
And in ``pytest.ini`` / ``tox.ini`` / ``setup.cfg``::
2222

src/pytest_cov/embed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def init():
5353
import coverage
5454

5555
# Determine all source roots.
56-
if cov_source == os.pathsep:
56+
if cov_source in os.pathsep:
5757
cov_source = None
5858
else:
5959
cov_source = cov_source.split(os.pathsep)

0 commit comments

Comments
 (0)