-
-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consistently use sys.executable to run subprocesses
In some scenarios, like running pytest outside of an active virtualenv, it could happen that "coverage" would refer to a different Python interpreter than the one running the tests. Admittedly that does not happen in standard development scenarios where you use a virtualenv. But it easily happens when packaging for Linux distributions that support multiple versions of Python and it can also happen when running pytest from a virtualenv without activating it. The latter is something that's convenient when testing versus multiple Python versions without using tox. Explicitly invoking coverage as a module on sys.executable ensures that the same binary, not process, that's also running the tests is used. This was in fact already done in some tests but not consistently across all of them.
- Loading branch information
Showing
117 changed files
with
336 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.