Skip to content

Commit be10f22

Browse files
authored
Code cleanup for the test suite's subprocess
1 parent 17b6c61 commit be10f22

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
# Ensure the process is killed on exit
1212
atexit.register(lambda _process: _process.kill(), process)
1313

14-
output = process.stdout.readline().decode('utf-8')
15-
1614
def read_line():
1715
return process.stdout.readline().decode('utf-8')
1816

17+
output = read_line()
1918
if output.strip() == '':
2019
output += read_line()
2120

0 commit comments

Comments
 (0)