Index: test/no-cpp/gyptest-no-cpp.py |
diff --git a/test/no-cpp/gyptest-no-cpp.py b/test/no-cpp/gyptest-no-cpp.py |
index d37e3c194b71a226bc0b315a3843bf295fb8b784..05e5a4324a9c2e8f86f40cab0a9673995367a1bb 100644 |
--- a/test/no-cpp/gyptest-no-cpp.py |
+++ b/test/no-cpp/gyptest-no-cpp.py |
@@ -27,9 +27,11 @@ if sys.platform != 'win32' and test.format != 'make': |
def LinksLibStdCpp(path): |
path = test.built_file_path(path, chdir=CHDIR) |
if sys.platform == 'darwin': |
- proc = subprocess.Popen(['otool', '-L', path], stdout=subprocess.PIPE) |
+ proc = subprocess.Popen(['otool', '-L', path], stdout=subprocess.PIPE, |
+ universal_newlines=True) |
else: |
- proc = subprocess.Popen(['ldd', path], stdout=subprocess.PIPE) |
+ proc = subprocess.Popen(['ldd', path], stdout=subprocess.PIPE, |
+ universal_newlines=True) |
output = proc.communicate()[0] |
assert not proc.returncode |
return 'libstdc++' in output or 'libc++' in output |