Skip to content

Commit

Permalink
Pass positional args to pytest invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
di committed May 12, 2020
1 parent d2e29ed commit 7f35cf2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ def coverage(*args):
session.install("coverage<5.0.0", "pretend", "pytest", "pip>=9.0.2")

if "pypy" not in session.python:
coverage("run", "--source", "packaging/", "-m", "pytest", "--strict")
coverage(
"run",
"--source",
"packaging/",
"-m",
"pytest",
"--strict",
*session.posargs,
)
coverage("report", "-m", "--fail-under", "100")
else:
# Don't do coverage tracking for PyPy, since it's SLOW.
Expand Down

0 comments on commit 7f35cf2

Please sign in to comment.