more unit tests and fixes

This commit is contained in:
Edwin Eefting
2020-05-12 01:56:22 +02:00
parent 04971f2f29
commit 55f491915a
2 changed files with 21 additions and 20 deletions

View File

@ -378,7 +378,10 @@ class ExecuteNode:
#Note: make streaming?
if isinstance(input,str) or type(input)=='unicode':
p.stdin.write(input)
p.stdin.write(input.encode('utf-8'))
if p.stdin:
p.stdin.close()
#return pipe
if pipe: