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

Unified Diff: test/variables/commands/gyptest-commands-repeated.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/variables/commands/gyptest-commands-repeated.py
diff --git a/test/variables/commands/gyptest-commands-repeated.py b/test/variables/commands/gyptest-commands-repeated.py
index b95fe2d75eea0d8405820a7f6f68fa6e64ad5f19..fcf98ee02ad27a6470bf72128546918028479fa4 100755
--- a/test/variables/commands/gyptest-commands-repeated.py
+++ b/test/variables/commands/gyptest-commands-repeated.py
@@ -9,6 +9,8 @@ Test variable expansion of '<!()' syntax commands where they are evaluated
more then once..
"""
+from __future__ import print_function
+
import TestGyp
test = TestGyp.TestGyp(format='gypd')
@@ -31,7 +33,7 @@ test.run_gyp('commands-repeated.gyp',
contents = test.read('commands-repeated.gypd').replace('\r\n', '\n')
expect = test.read('commands-repeated.gypd.golden').replace('\r\n', '\n')
if not test.match(contents, expect):
- print "Unexpected contents of `commands-repeated.gypd'"
+ print("Unexpected contents of `commands-repeated.gypd'")
test.diff(expect, contents, 'commands-repeated.gypd ')
test.fail_test()

Powered by Google App Engine
This is Rietveld 408576698