changeset 28677:2903558a6991

py3: make test-url use print_function
author Pulkit Goyal <7895pulkit@gmail.com>
date Tue, 29 Mar 2016 16:23:40 +0530
parents a4803f35efba
children 870dae78234c
files tests/test-check-py3-compat.t tests/test-url.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-py3-compat.t	Tue Mar 29 16:21:31 2016 +0530
+++ b/tests/test-check-py3-compat.t	Tue Mar 29 16:23:40 2016 +0530
@@ -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
--- a/tests/test-url.py	Tue Mar 29 16:21:31 2016 +0530
+++ b/tests/test-url.py	Tue Mar 29 16:23:40 2016 +0530
@@ -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),),)}