From a387f9708ab779d723236004845146b3b4e143c7 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 8 Mar 2023 14:47:47 -0700 Subject: [PATCH] PyLint fix --- platformio/test/runners/readers/serial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/test/runners/readers/serial.py b/platformio/test/runners/readers/serial.py index 29916915..a9732d7f 100644 --- a/platformio/test/runners/readers/serial.py +++ b/platformio/test/runners/readers/serial.py @@ -46,7 +46,7 @@ class SerialTestOutputReader: ser.open() except serial.SerialException as exc: click.secho(str(exc), fg="red", err=True) - return None + return if not self.test_runner.options.no_reset: ser.flushInput()