Skip to content

Commit

Permalink
Call pytest using "python -m pytest"
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhdev committed Jan 28, 2020
1 parent e9a63dd commit 2667118
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 @@ -21,7 +21,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 2667118

Please sign in to comment.