[PATCH 3 of 6 V2] tests: use print_function in test-hg-parseurl.py

Robert Stanca robert.stanca7 at gmail.com
Sun Apr 3 18:53:41 EDT 2016


# HG changeset patch
# User Robert Stanca <robert.stanca7 at gmail.com>
# Date 1459718943 -10800
#      Mon Apr 04 00:29:03 2016 +0300
# Node ID e91e1960e4b0e9c73142fa54805a3fae61c43182
# Parent  2a7c87b8259d5e405ad08f3cb90cef7f6d4f7373
tests: use print_function in test-hg-parseurl.py

diff -r 2a7c87b8259d -r e91e1960e4b0 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Mon Apr 04 00:27:04 2016 +0300
+++ b/tests/test-check-py3-compat.t	Mon Apr 04 00:29:03 2016 +0300
@@ -56,7 +56,6 @@
   tests/test-demandimport.py not using absolute_import
   tests/test-demandimport.py requires print_function
   tests/test-doctest.py not using absolute_import
-  tests/test-hg-parseurl.py requires print_function
   tests/test-hgweb-auth.py not using absolute_import
   tests/test-hgweb-auth.py requires print_function
   tests/test-hgwebdir-paths.py not using absolute_import
@@ -216,7 +215,6 @@
   mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
   tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
   tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
-  tests/test-hg-parseurl.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
   tests/test-hgweb-auth.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
   tests/test-hybridencode.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
   tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
diff -r 2a7c87b8259d -r e91e1960e4b0 tests/test-hg-parseurl.py
--- a/tests/test-hg-parseurl.py	Mon Apr 04 00:27:04 2016 +0300
+++ b/tests/test-hg-parseurl.py	Mon Apr 04 00:29:03 2016 +0300
@@ -1,10 +1,10 @@
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
 from mercurial.hg import (
     parseurl,
 )
 
 def testparse(url, branch=[]):
-    print '%s, branches: %r' % parseurl(url, branch)
+    print('%s, branches: %r' % parseurl(url, branch))
 
 testparse('http://example.com/no/anchor')
 testparse('http://example.com/an/anchor#foo')


More information about the Mercurial-devel mailing list