063
064 For strings, appends \ before special characters like ', ", and \
065
066 For arrays, applies the same transformation on each element, joins the
067 elements and returns a string-like representation of the list.
068
069 >>> to_raw("foo ' bar")
070 '"foo \\\' bar"'
071
072 >>> to_raw([r"foo ' bar", r"bar \\\' baz", r'foo " baz'])
Expected:
'["foo \\\' bar", "bar \\\\\\\' baz", "foo \\" baz"]'
Got:
'["foo \\\' bar", "bar \\\\\\\\\\\\\\\' baz", "foo \\" baz"]'
/var/lib/jenkins/workspace/DSEA/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/search/utils.py:72: DocTestFailure
TEST RESULT
TEST RESULT
- Run At
- Aug 4 2021, 11:50 AM