Tests for an executable should use sys.executable
Currently ExecutableRequirementTestCase.test_installed_requirement
is
def test_installed_requirement(self):
self.assertTrue(ExecutableRequirement("python").is_installed() or
ExecutableRequirement("python3").is_installed())
That fails if the python3
executable is called something else, like python3.6
Use sys.executable
which will always exist.
Edited by John Vandenberg