ephraimbuddy commented on code in PR #57631:
URL: https://github.com/apache/airflow/pull/57631#discussion_r2497789444


##########
providers/standard/tests/unit/standard/operators/test_python.py:
##########
@@ -933,6 +933,23 @@ def poke(self, context):
 virtualenv_string_args: list[str] = []
 
 
+def _callable_that_imports_from_bundle():
+    """
+    A callable function for testing DAG bundle imports.
+    This import will fail if PYTHONPATH is not set correctly by the operator.
+    The module 'bug_test_dag_repro' is created dynamically in the test.
+    """
+    try:
+        from bug_test_dag_repro.lib.helper import get_message
+
+        return get_message()
+    except Exception as e:

Review Comment:
   ```suggestion
       except ImportError as e:
   ```



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