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

ash 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 0e52046de0a Make the warnings capture plugin know about the provider 
workspace folder (#43505)
0e52046de0a is described below

commit 0e52046de0a7da038a88d72d19aa64f776b81646
Author: Ash Berlin-Taylor <[email protected]>
AuthorDate: Wed Oct 30 10:54:11 2024 +0000

    Make the warnings capture plugin know about the provider workspace folder 
(#43505)
---
 tests_common/_internals/capture_warnings.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests_common/_internals/capture_warnings.py 
b/tests_common/_internals/capture_warnings.py
index aaae4e54f0c..aa694e7366a 100644
--- a/tests_common/_internals/capture_warnings.py
+++ b/tests_common/_internals/capture_warnings.py
@@ -117,10 +117,10 @@ class CapturedWarning:
         But we should not use it to filter it out, only for show in different 
groups.
         """
         if self.filename.startswith("airflow/"):
-            if self.filename.startswith("airflow/providers/"):
-                return "providers"
             return "airflow"
-        elif self.filename.startswith("tests/"):
+        elif self.filename.startswith("providers/src/"):
+            return "providers"
+        elif self.filename.startswith("tests/") or 
self.filename.startswith("providers/tests/"):
             return "tests"
         return "other"
 

Reply via email to