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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy