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

Unified Diff: test/symlinks/gyptest-symlinks.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/symlinks/gyptest-symlinks.py
diff --git a/test/symlinks/gyptest-symlinks.py b/test/symlinks/gyptest-symlinks.py
index f0c2d515641f4975cb1d5227ac35682ea19aa44b..278818a992eeddb666f55bfae302b0bdb4c56bb7 100755
--- a/test/symlinks/gyptest-symlinks.py
+++ b/test/symlinks/gyptest-symlinks.py
@@ -28,8 +28,8 @@ if sys.platform != 'win32':
# symlinked back and processed. Note that we don't ask gyp to touch the
# original files at all; they are only there as source material for the copy.
# That's why hello.gyp references symlink_hello.c instead of hello.c.
- with tempfile.NamedTemporaryFile() as gyp_file:
- with tempfile.NamedTemporaryFile() as c_file:
+ with tempfile.NamedTemporaryFile(mode='w+') as gyp_file:
+ with tempfile.NamedTemporaryFile(mode='w+') as c_file:
with open('hello.gyp') as orig_gyp_file:
gyp_file.write(orig_gyp_file.read())
gyp_file.flush()

Powered by Google App Engine
This is Rietveld 408576698