Skip to content

Commit

Permalink
Drop 99% coverage threshold flag for 3.10 in noxfile (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess committed Apr 7, 2022
1 parent d947833 commit 4399ec5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import os
import platform
import shutil
import sys

import nox

Expand Down Expand Up @@ -68,16 +67,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")


Expand Down

0 comments on commit 4399ec5

Please sign in to comment.