github-actions[bot] opened a new pull request, #72320:
URL: https://github.com/apache/airflow/pull/72320

   * Export AIRFLOW_TEST_MODE from airflow tasks test without --env-vars
   
   The test-mode signal has been hostage to an unrelated flag since it was
   introduced in 2020, so Dag code that branches on it never saw it during a
   plain `airflow tasks test` run. In Airflow 3 this is the only working
   test-mode signal, because the `test_mode` task-context variable is
   currently disabled.
   
   * Stop the env-vars test leaking its writes into the pytest session
   
   monkeypatch.delenv records an undo entry only when the key is already set,
   so on a clean worker the values task_test writes to the real process
   environment survived teardown. Seeding a sentinel instead also tightens the
   assertion: the command now has to overwrite a pre-existing value rather than
   merely populate an absent one.
   
   ---------
   (cherry picked from commit 6402213dc52540cce6094f9a300d1145d7460000)
   
   Co-authored-by: Y-C <[email protected]>
   Co-authored-by: Eason09053360 
<[email protected]>


-- 
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]

Reply via email to