Skip to content

Commit b321ada

Browse files
Update
1 parent 2ac6c93 commit b321ada

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/prediction.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ def test_bulk(self):
1616
cmd = ['CytoSig_run.py', '-i', Y, '-o', output, '-e', '1']
1717

1818
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
19-
p.communicate()
19+
out,err = p.communicate()
20+
out,err = out.decode().strip(), err.decode().strip()
21+
22+
print('Output:\n', out)
23+
if len(err) > 0: print('Error:\n', err)
2024

2125
result_map = {}
2226

0 commit comments

Comments
 (0)