Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(827)

Unified Diff: test/lib/TestMac.py

Issue 1454433002: Python 3 compatibility Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase with master (4ec6c4e3a94bd04a6da2858163d40b2429b8aad1) Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/lib/TestMac.py
diff --git a/test/lib/TestMac.py b/test/lib/TestMac.py
index 68605d77b1957e01dcafe3d1aa95071c5343ce54..eec7250ae73d3c0fb563e5c2c4b570e8e8129db3 100644
--- a/test/lib/TestMac.py
+++ b/test/lib/TestMac.py
@@ -6,6 +6,8 @@
TestMac.py: a collection of helper function shared between test on Mac OS X.
"""
+from __future__ import print_function
+
import re
import subprocess
@@ -23,13 +25,13 @@ def CheckFileType(test, file, archs):
pattern = re.compile('^Architectures in the fat file: (.*) are: (.*)$')
match = pattern.match(o)
if match is None:
- print 'Ouput does not match expected pattern: %s' % (pattern.pattern)
+ print('Ouput does not match expected pattern: %s' % (pattern.pattern))
test.fail_test()
else:
found_file, found_archs = match.groups()
if found_file != file or set(found_archs.split()) != set(archs):
- print 'Expected file %s with arch %s, got %s with arch %s' % (
- file, ' '.join(archs), found_file, found_archs)
+ print('Expected file %s with arch %s, got %s with arch %s' % (
+ file, ' '.join(archs), found_file, found_archs))
test.fail_test()

Powered by Google App Engine
This is Rietveld 408576698