We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a334ad9 commit 9d0ea3bCopy full SHA for 9d0ea3b
tests/test_run_scripts.py
@@ -91,10 +91,15 @@ def test_return_None(script_runner):
91
# function is easy_install so we use it here.
92
93
try:
94
- result = script_runner.run('easy_install', '-h')
+ path = script_runner._locate_script('easy_install')
95
+ if os.path.join('.pyenv', 'shims') in path:
96
+ # We have a shell wrapper from pyenv instead of real easy_install.
97
+ return
98
except FileNotFoundError:
- # No easy install. Just skip.
99
+ # No easy_install. We skip the test.
100
return
101
+
102
+ result = script_runner.run('easy_install', '-h')
103
assert result.success
104
assert '--verbose' in result.stdout
105
0 commit comments