Patchwork D3070: py3: use print as a function in tests/test-walk.t

login
register
mail settings
Submitter phabricator
Date April 4, 2018, 1:39 p.m.
Message ID <04a259d27b6bfb94dd987758fe5c4366@localhost.localdomain>
Download mbox | patch
Permalink /patch/30251/
State Not Applicable
Headers show

Comments

phabricator - April 4, 2018, 1:39 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG14da486e820d: py3: use print as a function in tests/test-walk.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3070?vs=7614&id=7617

REVISION DETAIL
  https://phab.mercurial-scm.org/D3070

AFFECTED FILES
  tests/test-walk.t

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-walk.t b/tests/test-walk.t
--- a/tests/test-walk.t
+++ b/tests/test-walk.t
@@ -519,7 +519,12 @@ 
 
   $ cd t
   $ echo fennel > overflow.list
-  $ $PYTHON -c "for i in range(20000 / 100): print 'x' * 100" >> overflow.list
+  $ cat >> printnum.py <<EOF
+  > from __future__ import print_function
+  > for i in range(20000 // 100):
+  >   print('x' * 100)
+  > EOF
+  $ $PYTHON printnum.py >> overflow.list
   $ echo fenugreek >> overflow.list
   $ hg debugwalk 'listfile:overflow.list' 2>&1 | egrep -v '(^matcher: |^xxx)'
   f  fennel     fennel     exact