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

Unified Diff: test/variables/filelist/gyptest-filelist-golden.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/filelist/gyptest-filelist-golden.py
diff --git a/test/variables/filelist/gyptest-filelist-golden.py b/test/variables/filelist/gyptest-filelist-golden.py
index 55eaf9db46b3b4c20f6ca889bc258ec2585fa294..3ddc6698f8ac79fa8b29c1b3e99bf7b07aaf9eb4 100644
--- a/test/variables/filelist/gyptest-filelist-golden.py
+++ b/test/variables/filelist/gyptest-filelist-golden.py
@@ -8,6 +8,8 @@
Test variable expansion of '<|(list.txt ...)' syntax commands.
"""
+from __future__ import print_function
+
import os
import sys
@@ -36,14 +38,14 @@ contents = test.read('src/filelist.gypd').replace(
'\r', '').replace('\\\\', '/')
expect = test.read('filelist.gypd.golden').replace('\r', '')
if not test.match(contents, expect):
- print "Unexpected contents of `src/filelist.gypd'"
+ print("Unexpected contents of `src/filelist.gypd'")
test.diff(expect, contents, 'src/filelist.gypd ')
test.fail_test()
contents = test.read('src/names.txt')
expect = 'John\nJacob\nJingleheimer\nSchmidt\n'
if not test.match(contents, expect):
- print "Unexpected contents of `src/names.txt'"
+ print("Unexpected contents of `src/names.txt'")
test.diff(expect, contents, 'src/names.txt ')
test.fail_test()

Powered by Google App Engine
This is Rietveld 408576698