summaryrefslogtreecommitdiff
path: root/QMTest
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2016-05-08 17:21:42 -0700
committerWilliam Deegan <bill@baddogconsulting.com>2016-05-08 17:21:42 -0700
commit3bc1c459c9aaff4829aa11b55075a184c47bd376 (patch)
treed2064c372799de3984e564ffbbebbd256d12379a /QMTest
parentd7236742fd0a893a6a1d1ec761302735f6daec8e (diff)
downloadscons-3bc1c459c9aaff4829aa11b55075a184c47bd376.tar.gz
Guard checking for subprocess.mswindows by checking if on win32 platform
Diffstat (limited to 'QMTest')
-rw-r--r--QMTest/TestCmd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/QMTest/TestCmd.py b/QMTest/TestCmd.py
index f8c4e69e..8cb6fb96 100644
--- a/QMTest/TestCmd.py
+++ b/QMTest/TestCmd.py
@@ -658,7 +658,7 @@ except AttributeError:
PIPE = subprocess.PIPE
-if subprocess.mswindows:
+if sys.platform == 'win32' and subprocess.mswindows:
try:
from win32file import ReadFile, WriteFile
from win32pipe import PeekNamedPipe
@@ -720,7 +720,7 @@ class Popen(subprocess.Popen):
getattr(self, which).close()
setattr(self, which, None)
- if subprocess.mswindows:
+ if sys.platform == 'win32' and subprocess.mswindows:
def send(self, input):
if not self.stdin:
return None