ashb commented on code in PR #48683:
URL: https://github.com/apache/airflow/pull/48683#discussion_r2028539070


##########
providers/standard/tests/unit/standard/decorators/test_python.py:
##########
@@ -168,8 +168,12 @@ def t3(  # type: ignore[empty-body]
                 line = line - 1
 
         warn = recwarn[0]
-        assert warn.filename == __file__
-        assert warn.lineno == line
+        if AIRFLOW_V_3_0_PLUS:
+            # since it is resolved dynamically now from decorators init
+            assert warn.filename.endswith("decorators/__init__.py")

Review Comment:
   Oh nooo. This test is _specifically_ to check that the warning is reported 
from the user code. We will need to update the code somehow



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