diff --git a/examples/partial_path_process.py b/examples/partial_path_process.py index 08d368dc7..7903048cb 100644 --- a/examples/partial_path_process.py +++ b/examples/partial_path_process.py @@ -9,5 +9,5 @@ pop('../ls -l', shell=False) -pop('c:\hello\something', shell=False) +pop('c:\\hello\\something', shell=False) pop('c:/hello/something_else', shell=False) diff --git a/tests/unit/core/test_util.py b/tests/unit/core/test_util.py index 82b573cef..8d2833377 100644 --- a/tests/unit/core/test_util.py +++ b/tests/unit/core/test_util.py @@ -252,15 +252,15 @@ def test_escaped_representation_simple(self): self.assertEqual(res, b"ascii") def test_escaped_representation_valid_not_printable(self): - res = b_utils.escaped_bytes_representation(b"\u0000") + res = b_utils.escaped_bytes_representation(b"\\u0000") self.assertEqual(res, b"\\x00") def test_escaped_representation_invalid(self): - res = b_utils.escaped_bytes_representation(b"\uffff") + res = b_utils.escaped_bytes_representation(b"\\uffff") self.assertEqual(res, b"\\uffff") def test_escaped_representation_mixed(self): - res = b_utils.escaped_bytes_representation(b"ascii\u0000\uffff") + res = b_utils.escaped_bytes_representation(b"ascii\\u0000\\uffff") self.assertEqual(res, b"ascii\\x00\\uffff") def test_deepgetattr(self):