summaryrefslogtreecommitdiffstats
path: root/QMTest/TestCmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'QMTest/TestCmd.py')
-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