summaryrefslogtreecommitdiffstats
path: root/QMTest
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2016-05-09 00:21:42 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2016-05-09 00:21:42 (GMT)
commitc591da06c1a18873d09323d6700d1469120ad27d (patch)
treed2064c372799de3984e564ffbbebbd256d12379a /QMTest
parentd86a8cf1f8e5aadca9bcd6b7481ab15eccc0530d (diff)
downloadSCons-c591da06c1a18873d09323d6700d1469120ad27d.zip
SCons-c591da06c1a18873d09323d6700d1469120ad27d.tar.gz
SCons-c591da06c1a18873d09323d6700d1469120ad27d.tar.bz2
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 f8c4e69..8cb6fb9 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