##// END OF EJS Templates
py3: convert print to a function call in a few tests...
Matt Harbison -
r39948:7b35209b default
parent child Browse files
Show More
@@ -412,7 +412,7 b' non-ascii content and truncation of mult'
412 > EOF
412 > EOF
413 $ echo a >> a/a
413 $ echo a >> a/a
414 $ hg --cwd a --encoding utf-8 commit -A -d '0 0' \
414 $ hg --cwd a --encoding utf-8 commit -A -d '0 0' \
415 > -m `"$PYTHON" -c 'print "\xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3\xc3\xa4"'`
415 > -m `"$PYTHON" -c 'print("\xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3\xc3\xa4")'`
416 $ hg --traceback --cwd b --encoding utf-8 pull ../a | \
416 $ hg --traceback --cwd b --encoding utf-8 pull ../a | \
417 > "$PYTHON" $TESTTMP/filter.py
417 > "$PYTHON" $TESTTMP/filter.py
418 pulling from ../a
418 pulling from ../a
@@ -413,14 +413,14 b' no crash by empty group "()" while optim'
413 test that chained `or` operations never eat up stack (issue4624)
413 test that chained `or` operations never eat up stack (issue4624)
414 (uses `0:1` instead of `0` to avoid future optimization of trivial revisions)
414 (uses `0:1` instead of `0` to avoid future optimization of trivial revisions)
415
415
416 $ hg log -T '{rev}\n' -r `"$PYTHON" -c "print '+'.join(['0:1'] * 500)"`
416 $ hg log -T '{rev}\n' -r `"$PYTHON" -c "print('+'.join(['0:1'] * 500))"`
417 0
417 0
418 1
418 1
419
419
420 test that repeated `-r` options never eat up stack (issue4565)
420 test that repeated `-r` options never eat up stack (issue4565)
421 (uses `-r 0::1` to avoid possible optimization at old-style parser)
421 (uses `-r 0::1` to avoid possible optimization at old-style parser)
422
422
423 $ hg log -T '{rev}\n' `"$PYTHON" -c "for i in range(500): print '-r 0::1 ',"`
423 $ hg log -T '{rev}\n' `"$PYTHON" -c "for i in range(500): print('-r 0::1 ')"`
424 0
424 0
425 1
425 1
426
426
@@ -1528,7 +1528,7 b' test author/desc/keyword in problematic '
1528 $ cd problematicencoding
1528 $ cd problematicencoding
1529
1529
1530 $ "$PYTHON" > setup.sh <<EOF
1530 $ "$PYTHON" > setup.sh <<EOF
1531 > print u'''
1531 > print(u'''
1532 > echo a > text
1532 > echo a > text
1533 > hg add text
1533 > hg add text
1534 > hg --encoding utf-8 commit -u '\u30A2' -m none
1534 > hg --encoding utf-8 commit -u '\u30A2' -m none
@@ -1538,13 +1538,13 b' test author/desc/keyword in problematic '
1538 > hg --encoding utf-8 commit -u none -m '\u30A2'
1538 > hg --encoding utf-8 commit -u none -m '\u30A2'
1539 > echo d > text
1539 > echo d > text
1540 > hg --encoding utf-8 commit -u none -m '\u30C2'
1540 > hg --encoding utf-8 commit -u none -m '\u30C2'
1541 > '''.encode('utf-8')
1541 > '''.encode('utf-8'))
1542 > EOF
1542 > EOF
1543 $ sh < setup.sh
1543 $ sh < setup.sh
1544
1544
1545 test in problematic encoding
1545 test in problematic encoding
1546 $ "$PYTHON" > test.sh <<EOF
1546 $ "$PYTHON" > test.sh <<EOF
1547 > print u'''
1547 > print(u'''
1548 > hg --encoding cp932 log --template '{rev}\\n' -r 'author(\u30A2)'
1548 > hg --encoding cp932 log --template '{rev}\\n' -r 'author(\u30A2)'
1549 > echo ====
1549 > echo ====
1550 > hg --encoding cp932 log --template '{rev}\\n' -r 'author(\u30C2)'
1550 > hg --encoding cp932 log --template '{rev}\\n' -r 'author(\u30C2)'
@@ -1556,7 +1556,7 b' test in problematic encoding'
1556 > hg --encoding cp932 log --template '{rev}\\n' -r 'keyword(\u30A2)'
1556 > hg --encoding cp932 log --template '{rev}\\n' -r 'keyword(\u30A2)'
1557 > echo ====
1557 > echo ====
1558 > hg --encoding cp932 log --template '{rev}\\n' -r 'keyword(\u30C2)'
1558 > hg --encoding cp932 log --template '{rev}\\n' -r 'keyword(\u30C2)'
1559 > '''.encode('cp932')
1559 > '''.encode('cp932'))
1560 > EOF
1560 > EOF
1561 $ sh < test.sh
1561 $ sh < test.sh
1562 0
1562 0
General Comments 0
You need to be logged in to leave comments. Login now