##// END OF EJS Templates
tests: fix Python3 issues in Python one-liners in test-patchbomb.t...
Augie Fackler -
r39065:1eb779a8 default
parent child Browse files
Show More
@@ -442,7 +442,7 b' with a specific bundle type'
442 --===============*==-- (glob)
442 --===============*==-- (glob)
443
443
444 utf-8 patch:
444 utf-8 patch:
445 $ $PYTHON -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();'
445 $ $PYTHON -c 'fp = open("utf", "wb"); fp.write(b"h\xC3\xB6mma!\n"); fp.close();'
446 $ hg commit -A -d '4 0' -m 'utf-8 content'
446 $ hg commit -A -d '4 0' -m 'utf-8 content'
447 adding description
447 adding description
448 adding utf
448 adding utf
@@ -551,7 +551,7 b' mime encoded mbox (base64):'
551 $ rm mbox
551 $ rm mbox
552
552
553 mime encoded mbox (quoted-printable):
553 mime encoded mbox (quoted-printable):
554 $ $PYTHON -c 'fp = open("long", "wb"); fp.write("%s\nfoo\n\nbar\n" % ("x" * 1024)); fp.close();'
554 $ $PYTHON -c 'fp = open("long", "wb"); fp.write(b"%s\nfoo\n\nbar\n" % ("x" * 1024)); fp.close();'
555 $ hg commit -A -d '4 0' -m 'long line'
555 $ hg commit -A -d '4 0' -m 'long line'
556 adding long
556 adding long
557
557
@@ -665,7 +665,7 b' mime encoded mbox (quoted-printable):'
665 $ rm mbox
665 $ rm mbox
666
666
667 iso-8859-1 patch:
667 iso-8859-1 patch:
668 $ $PYTHON -c 'fp = open("isolatin", "wb"); fp.write("h\xF6mma!\n"); fp.close();'
668 $ $PYTHON -c 'fp = open("isolatin", "wb"); fp.write(b"h\xF6mma!\n"); fp.close();'
669 $ hg commit -A -d '5 0' -m 'isolatin 8-bit encoding'
669 $ hg commit -A -d '5 0' -m 'isolatin 8-bit encoding'
670 adding isolatin
670 adding isolatin
671
671
General Comments 0
You need to be logged in to leave comments. Login now