summaryrefslogtreecommitdiffstats
path: root/QMTest/TestCmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'QMTest/TestCmd.py')
-rw-r--r--QMTest/TestCmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/QMTest/TestCmd.py b/QMTest/TestCmd.py
index 1568b0d..1dff4a6 100644
--- a/QMTest/TestCmd.py
+++ b/QMTest/TestCmd.py
@@ -765,7 +765,7 @@ class Popen(subprocess.Popen):
try:
written = os.write(self.stdin.fileno(), input)
except OSError, why:
- if why[0] == errno.EPIPE: #broken pipe
+ if why.args[0] == errno.EPIPE: #broken pipe
return self._close('stdin')
raise