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.
1 parent 64b4310 commit f22ce65Copy full SHA for f22ce65
abb_test.py
@@ -1,4 +1,4 @@
1
-#!/usr/bin/env python2
+#!/usr/bin/env python
2
# coding: utf-8
3
#
4
# Copyright 2016 Adeodato Simó
@@ -193,7 +193,6 @@ def reset(self):
193
194
def _communicate(self, cmd, key=""):
195
self.proc.stdin.write("{}{}\n".format(cmd, key))
196
- self.proc.stdin.flush()
197
198
line = self.proc.stdout.readline()
199
self.proc.poll()
@@ -212,6 +211,8 @@ def setUp(self):
212
211
self.msg = None
213
self.seq = []
214
self.proc = subprocess.Popen(self.VALGRIND + [CMD_NAME],
+ bufsize=1, # Line-buffered.
215
+ universal_newlines=True,
216
stdin=subprocess.PIPE,
217
stdout=subprocess.PIPE,
218
stderr=subprocess.PIPE)
0 commit comments