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.
2 parents 018edf2 + 04c01fb commit 7c64d5dCopy full SHA for 7c64d5d
testing/test_parseopt.py
@@ -298,7 +298,11 @@ def test_argcomplete(testdir, monkeypatch):
298
# redirect output from argcomplete to stdin and stderr is not trivial
299
# http://stackoverflow.com/q/12589419/1307905
300
# so we use bash
301
- fp.write('COMP_WORDBREAKS="$COMP_WORDBREAKS" python -m pytest 8>&1 9>&2')
+ fp.write(
302
+ 'COMP_WORDBREAKS="$COMP_WORDBREAKS" {} -m pytest 8>&1 9>&2'.format(
303
+ sys.executable
304
+ )
305
306
# alternative would be exteneded Testdir.{run(),_run(),popen()} to be able
307
# to handle a keyword argument env that replaces os.environ in popen or
308
# extends the copy, advantage: could not forget to restore
0 commit comments