From c59a267a0c4971a8759faa78af4336d1bc5f5059 Mon Sep 17 00:00:00 2001 From: symonk Date: Sun, 2 Oct 2022 18:58:47 +0100 Subject: [PATCH] [py]: bugfix iterating stdout twice instead of stderr --- py/selenium/webdriver/common/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/selenium/webdriver/common/service.py b/py/selenium/webdriver/common/service.py index 6d121db2383f7..97195a07fa7cc 100644 --- a/py/selenium/webdriver/common/service.py +++ b/py/selenium/webdriver/common/service.py @@ -166,7 +166,7 @@ def _terminate_process(self) -> None: terminate. Terminating does not raise itself if something has gone wrong but (currently) silently ignores errors here.""" try: - stdin, stdout, stderr = self.process.stdin, self.process.stdout, self.process.stdout + stdin, stdout, stderr = self.process.stdin, self.process.stdout, self.process.stderr for stream in stdin, stdout, stderr: with contextlib.suppress(AttributeError): stream.close()