[PATCH 3 of 8 v2] tests: make test-url use print_function

Pulkit Goyal 7895pulkit at gmail.com
Tue Mar 29 07:47:47 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1459248820 -19800
#      Tue Mar 29 16:23:40 2016 +0530
# Node ID 18a5327b41ee990848fc69be8756dfacaad3a98f
# Parent  10ca794f9f89a10b9a23ce077292f1f98da24e1e
tests: make test-url use print_function

diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t
+++ b/tests/test-check-py3-compat.t
@@ -114,7 +114,6 @@
   tests/test-ui-verbosity.py not using absolute_import
   tests/test-ui-verbosity.py requires print_function
   tests/test-url.py not using absolute_import
-  tests/test-url.py requires print_function
 
 #if py3exe
   $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py
diff --git a/tests/test-url.py b/tests/test-url.py
--- a/tests/test-url.py
+++ b/tests/test-url.py
@@ -1,8 +1,9 @@
+from __future__ import print_function
 import os
 
 def check(a, b):
     if a != b:
-        print (a, b)
+        print((a, b))
 
 def cert(cn):
     return {'subject': ((('commonName', cn),),)}


More information about the Mercurial-devel mailing list