Patchwork [3,of,7] tests: test-addremove-similar.t use print() for py3

login
register
mail settings
Submitter timeless
Date May 11, 2016, 5:20 a.m.
Message ID <9f0c4cf04ef4f87f102d.1462944025@gcc2-power8.osuosl.org>
Download mbox | patch
Permalink /patch/14994/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

timeless - May 11, 2016, 5:20 a.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1462497307 0
#      Fri May 06 01:15:07 2016 +0000
# Node ID 9f0c4cf04ef4f87f102ddd1a0cadf99aad288f06
# Parent  f82bc56b1a3c113e127952739431fcdb86943339
# EXP-Topic runtests
# Available At bb://timeless/mercurial-crew
#              hg pull bb://timeless/mercurial-crew -r 9f0c4cf04ef4
tests: test-addremove-similar.t use print() for py3

Patch

diff -r f82bc56b1a3c -r 9f0c4cf04ef4 tests/test-addremove-similar.t
--- a/tests/test-addremove-similar.t	Fri May 06 00:45:31 2016 +0000
+++ b/tests/test-addremove-similar.t	Fri May 06 01:15:07 2016 +0000
@@ -1,7 +1,7 @@ 
   $ hg init rep; cd rep
 
   $ touch empty-file
-  $ $PYTHON -c 'for x in range(10000): print x' > large-file
+  $ $PYTHON -c 'for x in range(10000): print(x)' > large-file
 
   $ hg addremove
   adding empty-file
@@ -10,7 +10,7 @@ 
   $ hg commit -m A
 
   $ rm large-file empty-file
-  $ $PYTHON -c 'for x in range(10,10000): print x' > another-file
+  $ $PYTHON -c 'for x in range(10,10000): print(x)' > another-file
 
   $ hg addremove -s50
   adding another-file
@@ -34,8 +34,8 @@ 
 
   $ hg init rep2; cd rep2
 
-  $ $PYTHON -c 'for x in range(10000): print x' > large-file
-  $ $PYTHON -c 'for x in range(50): print x' > tiny-file
+  $ $PYTHON -c 'for x in range(10000): print(x)' > large-file
+  $ $PYTHON -c 'for x in range(50): print(x)' > tiny-file
 
   $ hg addremove
   adding large-file
@@ -43,7 +43,7 @@ 
 
   $ hg commit -m A
 
-  $ $PYTHON -c 'for x in range(70): print x' > small-file
+  $ $PYTHON -c 'for x in range(70): print(x)' > small-file
   $ rm tiny-file
   $ rm large-file