mik-laj edited a comment on issue #6098: [AIRFLOW-YYY] Fix flaky impersonation test URL: https://github.com/apache/airflow/pull/6098#issuecomment-531319961 @feluelle II'm not sure why it worked before, but I know why it works now. This test verifies that if we have PYTHONPATH set it will be correctly passed during interpersonation. We set PYTHONPATH in this place: https://github.com/apache/airflow/blob/master/run-tests#L48 This allows you to search modules from a different location. Please note that airflow modules are available because it is installed on the system - `pip install -e `. I would like to add quote from this file: ``` # AIRFLOW-1893 - Originally, impersonation tests were incomplete missing the use case when # DAGs access custom packages usually made available through the PYTHONPATH environment # variable. This file includes a DAG that imports a custom package made available and if # run via the previous implementation of impersonation, will fail by not being able to # import the custom package. # This DAG is used to test that impersonation propagates the PYTHONPATH environment # variable correctly. ```
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services