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

potiuk 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 5147028758 Fix tests/always/test_secrets_backends.py by adding 
test_utils/db.py to accepted DB access (#41234)
5147028758 is described below

commit 5147028758cb020677b913e0248f599ab9912991
Author: Jens Scheffler <[email protected]>
AuthorDate: Sat Aug 3 16:28:32 2024 +0200

    Fix tests/always/test_secrets_backends.py by adding test_utils/db.py to 
accepted DB access (#41234)
---
 airflow/settings.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/airflow/settings.py b/airflow/settings.py
index f1a0826dba..9c8b1e342e 100644
--- a/airflow/settings.py
+++ b/airflow/settings.py
@@ -361,8 +361,11 @@ class TracebackSessionForTests:
             and not tb.filename == AIRFLOW_SETTINGS_PATH
             and not tb.filename == AIRFLOW_UTILS_SESSION_PATH
         ]
-        if any(filename.endswith("conftest.py") for filename, _, _, _ in 
airflow_frames):
-            # This is a fixture call
+        if any(
+            filename.endswith("conftest.py") or 
filename.endswith("tests/test_utils/db.py")
+            for filename, _, _, _ in airflow_frames
+        ):
+            # This is a fixture call or testing utilities
             return True, None
         if (
             len(airflow_frames) >= 2

Reply via email to