freebsd-ports/devel/py-pytest/files/patch-testing-test_parseopt.py
Kevin Bowling 46a663d44c devel/py-pytest-flask: revert 6.2.4 update
Revert "devel/py-pytest: Update to 6.2.4"

This reverts commit 0c6ce3c9c2.

Revert "devel/py-pytest-translations: Update to 3.1.0"

This reverts commit 5989f395a0.

Revert "devel/py-pytest-xdist: Update to 2.3.0"

This reverts commit d07f92b9bf.

Revert "devel/py-pytest-flask: Update to 1.2.0"

This reverts commit b15351babf.

PR:		256624
Requested by:	koobs
2021-06-26 22:08:40 -07:00

11 lines
706 B
Python

--- testing/test_parseopt.py.orig 2020-06-05 12:09:03 UTC
+++ testing/test_parseopt.py
@@ -305,7 +305,7 @@ def test_argcomplete(testdir, monkeypatch):
# redirect output from argcomplete to stdin and stderr is not trivial
# http://stackoverflow.com/q/12589419/1307905
# so we use bash
- fp.write('COMP_WORDBREAKS="$COMP_WORDBREAKS" python -m pytest 8>&1 9>&2')
+ fp.write('COMP_WORDBREAKS="$COMP_WORDBREAKS" %%PYTHON_CMD%% -m pytest 8>&1 9>&2')
# alternative would be exteneded Testdir.{run(),_run(),popen()} to be able
# to handle a keyword argument env that replaces os.environ in popen or
# extends the copy, advantage: could not forget to restore