Skip to content

Commit

Permalink
Call pytest using "python -m pytest" (#267)
Browse files Browse the repository at this point in the history
Co-authored-by: Brett Cannon <[email protected]>
  • Loading branch information
xuhdev and brettcannon committed Jan 29, 2020
1 parent 939b28b commit ed9c96c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def coverage(*args):
coverage("report", "-m", "--fail-under", "100")
else:
# Don't do coverage tracking for PyPy, since it's SLOW.
session.run("pytest", "--capture=no", "--strict", *session.posargs)
session.run(
"python", "-m", "pytest", "--capture=no", "--strict", *session.posargs
)


@nox.session(python="3.8")
Expand Down

0 comments on commit ed9c96c

Please sign in to comment.