# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2016-03-29 10:53:40 # Node ID 2903558a6991b9b87bfa986264e783d5037278c7 # Parent a4803f35efba07d72cfbde0592d82d4e062f0c09 py3: 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),),)}