We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e99217 + 1b6f377 commit 03168d7Copy full SHA for 03168d7
utils/incrparse/test_util.py
@@ -5,6 +5,7 @@
5
import argparse
6
import io
7
import os
8
+import platform
9
import re
10
import subprocess
11
import sys
@@ -25,7 +26,7 @@ def run_command(cmd):
25
26
if sys.version_info[0] < 3:
27
cmd = list(map(lambda s: s.encode('utf-8'), cmd))
28
print(' '.join([escapeCmdArg(arg) for arg in cmd]))
- if sys.version_info[0] < 3:
29
+ if sys.version_info[0] < 3 or platform.system() == 'Windows':
30
return subprocess.check_output(cmd, stderr=subprocess.STDOUT)
31
else:
32
return subprocess.check_output(list(map(lambda s: s.encode('utf-8'), cmd)),
0 commit comments