tests: fix handling TestProcess.communicate(None)
This commit is contained in:
parent
fe51e8862a
commit
c435de06a1
@ -65,6 +65,7 @@ class TestProcess(object):
|
|||||||
self.returncode = 0
|
self.returncode = 0
|
||||||
|
|
||||||
def communicate(self, input=None):
|
def communicate(self, input=None):
|
||||||
|
if input is not None:
|
||||||
self.stdin.write(input)
|
self.stdin.write(input)
|
||||||
self.stdin.close()
|
self.stdin.close()
|
||||||
self.stdin_close()
|
self.stdin_close()
|
||||||
|
Loading…
Reference in New Issue
Block a user