ashb commented on a change in pull request #21578:
URL: https://github.com/apache/airflow/pull/21578#discussion_r806622761
##########
File path: tests/operators/test_python.py
##########
@@ -999,6 +999,21 @@ def test_lambda(self):
with pytest.raises(AirflowException):
PythonVirtualenvOperator(python_callable=lambda x: 4,
task_id='task', dag=self.dag)
+ def test_system_site_packages_with_wildcard_callable(self):
+ def mycallable(**kwargs):
Review comment:
This is...... surprising. Like why would `**kwargs` and site packages
cause this behaviour?!
##########
File path: tests/operators/test_python.py
##########
@@ -999,6 +999,21 @@ def test_lambda(self):
with pytest.raises(AirflowException):
PythonVirtualenvOperator(python_callable=lambda x: 4,
task_id='task', dag=self.dag)
+ def test_system_site_packages_with_wildcard_callable(self):
+ def mycallable(**kwargs):
Review comment:
Ohhhhh, it's cos of what we pass in those kwargs. That makes sense.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]