From 5168a814a0fa7bfda909372e9f360f4da6944666 Mon Sep 17 00:00:00 2001 From: Tom Date: Thu, 7 Apr 2022 15:48:42 +0100 Subject: [PATCH 1/2] Drop 99% coverage threshold flag for 3.10 in noxfile --- noxfile.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/noxfile.py b/noxfile.py index 511b06c4..b6770e8e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -68,16 +68,9 @@ def cover(session): if ON_WINDOWS_CI: return - # 3.10 produces different coverage results for some reason - # see https://github.com/theacodes/nox/issues/478 - fail_under = 100 - py_version = sys.version_info - if py_version.major == 3 and py_version.minor == 10: - fail_under = 99 - session.install("coverage[toml]") session.run("coverage", "combine") - session.run("coverage", "report", f"--fail-under={fail_under}", "--show-missing") + session.run("coverage", "report", "--fail-under=100", "--show-missing") session.run("coverage", "erase") From a1641f07c8d2f47a7054bba008d59b28f62f87ad Mon Sep 17 00:00:00 2001 From: Tom Date: Thu, 7 Apr 2022 15:58:35 +0100 Subject: [PATCH 2/2] Ooops, fix pre-commit failures --- noxfile.py | 1 - 1 file changed, 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index b6770e8e..63684791 100644 --- a/noxfile.py +++ b/noxfile.py @@ -19,7 +19,6 @@ import os import platform import shutil -import sys import nox