potiuk commented on code in PR #41857:
URL: https://github.com/apache/airflow/pull/41857#discussion_r1736316043


##########
tests/operators/test_python.py:
##########
@@ -1085,15 +1081,7 @@ def f():
         ti = self.run_as_task(f, return_ti=True, multiple_outputs=False, 
use_airflow_context=True)
         assert ti.state == TaskInstanceState.SUCCESS
 
-    @pytest.mark.skipif(HAS_PYDANTIC_2, reason="`pydantic>=2` is installed")
-    def test_use_airflow_context_without_pydantic_v2_error(self):
-        def f():
-            from airflow.operators.python import get_current_context
-
-            get_current_context()
-            return []
-
-        error_msg = "`get_current_context()` needs to be used with Pydantic 2 
and AIP-44 enabled."
+        error_msg = "`get_current_context()` needs to be used with AIP-44 
enabled."
         with pytest.raises(AirflowException, match=re.escape(error_msg)):
             self.run_as_task(f, return_ti=True, multiple_outputs=False, 
use_airflow_context=True)
 

Review Comment:
   ```suggestion
   ```



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