You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2018/09/28 10:04:31 UTC
[GitHub] kaxil closed pull request #3968: [AIRFLOW-XXX] Fix
PythonVirtualenvOperator tests
kaxil closed pull request #3968: [AIRFLOW-XXX] Fix PythonVirtualenvOperator tests
URL: https://github.com/apache/incubator-airflow/pull/3968
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/scripts/ci/run-ci.sh b/scripts/ci/run-ci.sh
index f16ab5284d..2c893bcaa0 100755
--- a/scripts/ci/run-ci.sh
+++ b/scripts/ci/run-ci.sh
@@ -29,7 +29,7 @@ sudo chown -R airflow.airflow . $HOME/.cache $HOME/.wheelhouse/ $HOME/.cache/pip
if [[ $PYTHON_VERSION == '3' ]]; then
PIP=pip3
else
- PIP=pip
+ PIP=pip2
fi
sudo -H $PIP install --upgrade pip
diff --git a/tests/operators/test_virtualenv_operator.py b/tests/operators/test_virtualenv_operator.py
index 1985c0653f..460ea2f4a2 100644
--- a/tests/operators/test_virtualenv_operator.py
+++ b/tests/operators/test_virtualenv_operator.py
@@ -52,9 +52,10 @@ def setUp(self):
schedule_interval=INTERVAL)
self.addCleanup(self.dag.clear)
- def _run_as_operator(self, fn, **kwargs):
+ def _run_as_operator(self, fn, python_version=sys.version_info[0], **kwargs):
task = PythonVirtualenvOperator(
python_callable=fn,
+ python_version=python_version,
task_id='task',
dag=self.dag,
**kwargs)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services