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() |