You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't assume pytest executable is called py.test in unit tests
Many distributions append suffixes to installed Python script
names to differentiate between Python 2 and 3 versions. For
example, Debian installs the Python 3 pytest binary as `py.test-3`
(see https://packages.debian.org/stretch/all/python3-pytest/filelist).
In the unit tests, invoke the pytest binary using `sys.exectuable`
to make sure that the subprocesses run with the same version of
Python as the unit tests themselves.
0 commit comments