Skip to content

Commit 574da35

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

noxfile.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ 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+
COVERAGE_FAIL_UNDER_PERCENT = 50
161+
156162
session.run("coverage", "erase")
157163
env.update(
158164
{

0 commit comments

Comments
 (0)