chenglongyan commented on a change in pull request #21460:
URL: https://github.com/apache/airflow/pull/21460#discussion_r806425216
##########
File path: tests/models/test_xcom.py
##########
@@ -377,6 +377,30 @@ def
test_xcom_get_many_from_prior_dates_with_execution_date(
assert [x.execution_date for x in stored_xcoms] == [dr2.logical_date,
dr1.logical_date]
+class TestXComSerializeNonAsciiValue:
+ @conf_vars({("core", "enable_xcom_pickling"): "false"})
+ def test_serialize_disable_pickling(self, session, dag_run):
+ val = XCom.serialize_value(['前有大梅林'])
+ assert val ==
b'["\xe5\x89\x8d\xe6\x9c\x89\xe5\xa4\xa7\xe6\xa2\x85\xe6\x9e\x97"]'
Review comment:
yes, it's hex bytes prefix of python...
https://docs.python.org/3/reference/lexical_analysis.html#:~:text=\xhh
--
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]