amoghrajesh commented on code in PR #70974:
URL: https://github.com/apache/airflow/pull/70974#discussion_r3702766849


##########
task-sdk/tests/task_sdk/serde/test_serde.py:
##########
@@ -523,8 +523,10 @@ def test_raise_undeserializable(self):
                 "__version__": 0,
             }
         )
-        with pytest.raises(TypeError, match="No deserializer"):
+        with pytest.raises(TypeError, match="No deserializer") as exc_info:
             deserialize(data)
+        assert "deserialize(data, version)" in str(exc_info.value)

Review Comment:
   Updated.



##########
task-sdk/tests/task_sdk/serde/test_serde.py:
##########
@@ -646,5 +648,7 @@ def test_error_when_serializing_callable_without_name(self):
         with pytest.raises(
             TypeError,
             match="cannot serialize object of type <class 
'tests.task_sdk.serde.test_serde.C'>",
-        ):
+        ) as exc_info:
             serialize(i)
+        assert "@dataclass or @attr.define" in str(exc_info.value)

Review Comment:
   Sure, handled.



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