This is an automated email from the ASF dual-hosted git repository.

jasonliu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 84fbeec0e6d Fix TaskSDK unit test config file path handling for 
installed packages and monorepo structure (#60811)
84fbeec0e6d is described below

commit 84fbeec0e6d9002b154d52df45bedc65c4d16156
Author: Jason(Zhe-You) Liu <[email protected]>
AuthorDate: Tue Jan 20 16:58:52 2026 +0800

    Fix TaskSDK unit test config file path handling for installed packages and 
monorepo structure (#60811)
---
 task-sdk/src/airflow/sdk/configuration.py | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/task-sdk/src/airflow/sdk/configuration.py 
b/task-sdk/src/airflow/sdk/configuration.py
index bc2a30c89a9..3d4a5cc58ba 100644
--- a/task-sdk/src/airflow/sdk/configuration.py
+++ b/task-sdk/src/airflow/sdk/configuration.py
@@ -149,14 +149,7 @@ class AirflowSDKConfigParser(_SharedAirflowConfigParser):
         The SDK does not expand template variables (FERNET_KEY, 
JWT_SECRET_KEY, etc.) because it does not use
         the config fields that require expansion.
         """
-        unit_test_config_file = (
-            pathlib.Path(__file__).parent.parent.parent.parent.parent
-            / "airflow-core"
-            / "src"
-            / "airflow"
-            / "config_templates"
-            / "unit_tests.cfg"
-        )
+        unit_test_config_file = 
pathlib.Path(_default_config_file_path("unit_tests.cfg"))
         unit_test_config = unit_test_config_file.read_text()
         self.remove_all_read_configurations()
         with StringIO(unit_test_config) as test_config_file:

Reply via email to