Skip to content
Snippets Groups Projects
Commit 34074e8e authored by Gregory Szorc's avatar Gregory Szorc
Browse files

py3: add b'' prefixes to wire protocol test

Otherwise the CBOR encoder fails on Python 3 due to lacking support
for encoding str/unicode.

# skip-blame just some b'' prefixes

Differential Revision: https://phab.mercurial-scm.org/D4734
parent 3ed53b07
No related branches found
No related tags found
No related merge requests found
......@@ -436,7 +436,7 @@
$ sendhttpv2peer << EOF
> command filedata
> nodes eval:['\x2b\x4e\xb0\x73\x19\xbf\xa0\x77\xa4\x0a\x2f\x04\x91\x36\x59\xae\xf0\xda\x42\xda', '\x9a\x38\x12\x29\x97\xb3\xac\x97\xbe\x2a\x9a\xa2\xe5\x56\x83\x83\x41\xfd\xf2\xcc']
> nodes eval:[b'\x2b\x4e\xb0\x73\x19\xbf\xa0\x77\xa4\x0a\x2f\x04\x91\x36\x59\xae\xf0\xda\x42\xda', b'\x9a\x38\x12\x29\x97\xb3\xac\x97\xbe\x2a\x9a\xa2\xe5\x56\x83\x83\x41\xfd\xf2\xcc']
> path eval:b'a'
> fields eval:[b'revision']
> EOF
......@@ -509,7 +509,7 @@
$ sendhttpv2peer << EOF
> command filedata
> nodes eval:['\x9a\x38\x12\x29\x97\xb3\xac\x97\xbe\x2a\x9a\xa2\xe5\x56\x83\x83\x41\xfd\xf2\xcc', '\x2b\x4e\xb0\x73\x19\xbf\xa0\x77\xa4\x0a\x2f\x04\x91\x36\x59\xae\xf0\xda\x42\xda']
> nodes eval:[b'\x9a\x38\x12\x29\x97\xb3\xac\x97\xbe\x2a\x9a\xa2\xe5\x56\x83\x83\x41\xfd\xf2\xcc', b'\x2b\x4e\xb0\x73\x19\xbf\xa0\x77\xa4\x0a\x2f\x04\x91\x36\x59\xae\xf0\xda\x42\xda']
> path eval:b'a'
> fields eval:[b'revision']
> EOF
......@@ -582,7 +582,7 @@
$ sendhttpv2peer << EOF
> command filedata
> nodes eval:['\x08\x79\x34\x5e\x39\x37\x72\x29\x63\x4b\x42\x0c\x63\x94\x54\x15\x67\x26\xc6\xb6']
> nodes eval:[b'\x08\x79\x34\x5e\x39\x37\x72\x29\x63\x4b\x42\x0c\x63\x94\x54\x15\x67\x26\xc6\xb6']
> path eval:b'a'
> fields eval:[b'parents', b'revision']
> EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment