Commit 78c167e
committed
Call pytest using "python -m pytest"
Directly calling "pytest" sometimes breaks tests on "pypy", such as pypa#234, because the actual current code is untested.
As explained from pypy website <https://docs.pytest.org/en/latest/usage.html>:
> ["python -m pytest"] is almost equivalent to invoking the command line
> script pytest [...] directly, except that calling via python will also
> add the current directory to sys.path.
Note that, unlike tests for pypy, the pytest script is not directly invoked in tests for other
Python interpreters.1 parent 54d57d7 commit 78c167e
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
0 commit comments