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

Unified Diff: test/win/gyptest-cl-function-level-linking.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/win/gyptest-cl-function-level-linking.py
diff --git a/test/win/gyptest-cl-function-level-linking.py b/test/win/gyptest-cl-function-level-linking.py
index 17c29e235fa7d1714e94f7bf01ff89b8b22a37ef..6ad7b8c48490ad8a1bfa6bcb79d9d98ee55e7abc 100644
--- a/test/win/gyptest-cl-function-level-linking.py
+++ b/test/win/gyptest-cl-function-level-linking.py
@@ -8,6 +8,8 @@
Make sure function-level linking setting is extracted properly.
"""
+from __future__ import print_function
+
import TestGyp
import sys
@@ -22,10 +24,10 @@ if sys.platform == 'win32':
def CheckForSectionString(binary, search_for, should_exist):
output = test.run_dumpbin('/headers', binary)
if should_exist and search_for not in output:
- print 'Did not find "%s" in %s' % (search_for, binary)
+ print('Did not find "%s" in %s' % (search_for, binary))
test.fail_test()
elif not should_exist and search_for in output:
- print 'Found "%s" in %s (and shouldn\'t have)' % (search_for, binary)
+ print('Found "%s" in %s (and shouldn\'t have)' % (search_for, binary))
test.fail_test()
def Object(proj, obj):

Powered by Google App Engine
This is Rietveld 408576698