Skip to content

Commit

Permalink
Lower expected code coverage on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
  • Loading branch information
s0undt3ch committed May 9, 2022
1 parent c748fa5 commit 0b41590
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ def tests(session):
install_command += [req.strip() for req in EXTRA_REQUIREMENTS_INSTALL.split()]
session.install(*install_command, silent=PIP_INSTALL_SILENT)

if IS_WINDOWS:
_python_version = python_version(session)
if _python_version > (3, 8) and _python_version < (3, 10):
# We skip a lot of tests, so lower the expected code coverage
global COVERAGE_FAIL_UNDER_PERCENT
COVERAGE_FAIL_UNDER_PERCENT = 50

session.run("coverage", "erase")
env.update(
{
Expand Down

0 comments on commit 0b41590

Please sign in to comment.