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

Unified Diff: test/variables/filelist/gyptest-filelist.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.py
diff --git a/test/variables/filelist/gyptest-filelist.py b/test/variables/filelist/gyptest-filelist.py
index 84a6cba5f4bae4617b0ffe3f493db89d42e46ead..55e8d8c85d871b108879a10705e9b63a76c88e25 100755
--- a/test/variables/filelist/gyptest-filelist.py
+++ b/test/variables/filelist/gyptest-filelist.py
@@ -8,6 +8,8 @@
Test variable expansion of '<|(list.txt ...)' syntax commands.
"""
+from __future__ import print_function
+
import os
import sys
@@ -22,7 +24,7 @@ test.build('filelist2.gyp', 'foo', chdir=CHDIR)
contents = test.read('src/dummy_foo').replace('\r', '')
expect = 'John\nJacob\nJingleheimer\nSchmidt\n'
if not test.match(contents, expect):
- print "Unexpected contents of `src/dummy_foo'"
+ print("Unexpected contents of `src/dummy_foo'")
test.diff(expect, contents, 'src/dummy_foo')
test.fail_test()

Powered by Google App Engine
This is Rietveld 408576698