Skip to content

Commit b6e8e62

Browse files
committed
Lower expected code coverage on windows
Signed-off-by: Pedro Algarvio <[email protected]>
1 parent 3454208 commit b6e8e62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

noxfile.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ def tests(session):
153153
install_command += [req.strip() for req in EXTRA_REQUIREMENTS_INSTALL.split()]
154154
session.install(*install_command, silent=PIP_INSTALL_SILENT)
155155

156+
if IS_WINDOWS:
157+
_python_version = python_version(session)
158+
if _python_version > (3, 8) and _python_version < (3, 10):
159+
# We skip a lot of tests, so lower the expected code coverage
160+
global COVERAGE_FAIL_UNDER_PERCENT
161+
COVERAGE_FAIL_UNDER_PERCENT = 50
162+
156163
session.run("coverage", "erase")
157164
env.update(
158165
{

0 commit comments

Comments
 (0)