We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d25fe8a commit 7cde429Copy full SHA for 7cde429
1 file changed
tests/lib/conftest.py
@@ -79,9 +79,9 @@ def starter(name: str, expected_returncode: int = 0) -> None:
79
80
def fin():
81
stop_process(proc)
82
- # Return code can be None on Python 3.8
+ # If return code is None, process has not stopped.
83
# https://docs.python.org/library/subprocess.html#subprocess.Popen.returncode
84
- if proc.returncode is not None and proc.returncode != expected_returncode:
+ if proc.returncode != expected_returncode:
85
raise RuntimeError(f"Client {name} exited with code {proc.returncode}, expected {expected_returncode}")
86
87
request.addfinalizer(fin)
0 commit comments