mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Fix tee function in example runner
This commit is contained in:
@@ -10,8 +10,8 @@ def tee_call(call, file, **kwargs):
|
||||
**kwargs)
|
||||
stdout, stderr = callee.communicate()
|
||||
print(stdout, stderr)
|
||||
file.write()
|
||||
file.write()
|
||||
file.write(stdout)
|
||||
file.write(stderr)
|
||||
if callee.poll() != 0:
|
||||
raise ValueError('Return code is non-zero')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user