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

Unified Diff: test/mac/gyptest-swift-library.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/mac/gyptest-swift-library.py
diff --git a/test/mac/gyptest-swift-library.py b/test/mac/gyptest-swift-library.py
index dde7a62351c65f3f5f7f5ba21b0f8e3f153a5187..d3433753fd07407d6eb598eb0a5fb45326098dbe 100644
--- a/test/mac/gyptest-swift-library.py
+++ b/test/mac/gyptest-swift-library.py
@@ -8,6 +8,8 @@
Verifies that a swift framework builds correctly.
"""
+from __future__ import print_function
+
import TestGyp
import TestMac
@@ -16,7 +18,7 @@ import sys
import subprocess
if sys.platform == 'darwin':
- print "This test is currently disabled: https://crbug.com/483696."
+ print("This test is currently disabled: https://crbug.com/483696.")
sys.exit(0)
test = TestGyp.TestGyp(formats=['xcode'])
@@ -26,7 +28,7 @@ if sys.platform == 'darwin':
output = subprocess.check_output(['nm', '-j', path])
idx = output.find(symbol)
if idx == -1:
- print 'Swift: Could not find symobl: %s' % symbol
+ print('Swift: Could not find symobl: %s' % symbol)
test.fail_test()
test_cases = []

Powered by Google App Engine
This is Rietveld 408576698