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

Unified Diff: test/configurations/inheritance/gyptest-duplicates.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/configurations/inheritance/gyptest-duplicates.py
diff --git a/test/configurations/inheritance/gyptest-duplicates.py b/test/configurations/inheritance/gyptest-duplicates.py
index 46687b4549b3a55b50db3eccae26c30c68b6647a..f015638b6ddd7b425fb08aa5eeb9808ba44abd2f 100755
--- a/test/configurations/inheritance/gyptest-duplicates.py
+++ b/test/configurations/inheritance/gyptest-duplicates.py
@@ -8,6 +8,8 @@
Verifies that configurations do not duplicate other settings.
"""
+from __future__ import print_function
+
import TestGyp
test = TestGyp.TestGyp(format='gypd')
@@ -27,7 +29,7 @@ contents = test.read('duplicates.gypd').replace(
'\r', '').replace('\\\\', '/')
expect = test.read('duplicates.gypd.golden').replace('\r', '')
if not test.match(contents, expect):
- print "Unexpected contents of `duplicates.gypd'"
+ print("Unexpected contents of `duplicates.gypd'")
test.diff(expect, contents, 'duplicates.gypd ')
test.fail_test()

Powered by Google App Engine
This is Rietveld 408576698