[PATCH 04 of 10 V3] tests: use print_function in filterpyflakes.py
Robert Stanca
robert.stanca7 at gmail.com
Sat Apr 2 11:37:36 EDT 2016
# HG changeset patch
# User Robert Stanca <robert.stanca7 at gmail.com>
# Date 1459607702 -10800
# Sat Apr 02 17:35:02 2016 +0300
# Node ID f0b365324407607f03e5367ecc706cf56284d031
# Parent 86ad720eb4fc8b479394ace981d8099591e26b96
tests: use print_function in filterpyflakes.py
diff -r 86ad720eb4fc -r f0b365324407 tests/filterpyflakes.py
--- a/tests/filterpyflakes.py Sat Apr 02 17:33:11 2016 +0300
+++ b/tests/filterpyflakes.py Sat Apr 02 17:35:02 2016 +0300
@@ -2,7 +2,7 @@
# Filter output by pyflakes to control which warnings we check
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
import re
import sys
@@ -54,8 +54,8 @@
for msgtype, line in sorted(lines, key=makekey):
sys.stdout.write(line)
-print
+print()
# self test of "undefined name" detection for other than 'memoryview'
if False:
- print undefinedname
+ print(undefinedname)
diff -r 86ad720eb4fc -r f0b365324407 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t Sat Apr 02 17:33:11 2016 +0300
+++ b/tests/test-check-py3-compat.t Sat Apr 02 17:35:02 2016 +0300
@@ -42,7 +42,6 @@
i18n/check-translation.py not using absolute_import
i18n/polib.py not using absolute_import
setup.py not using absolute_import
- tests/filterpyflakes.py requires print_function
tests/generate-working-copy-states.py requires print_function
tests/get-with-headers.py requires print_function
tests/heredoctest.py requires print_function
@@ -270,7 +269,6 @@
mercurial/win32.py: error importing module: <ImportError> No module named 'msvcrt' (line 12)
mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line 10)
mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
- tests/filterpyflakes.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
tests/generate-working-copy-states.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
tests/get-with-headers.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
More information about the Mercurial-devel
mailing list