Running tests with pyserial and python input function
Hello I am running 2 tests using PySerial. I am using print() and input() in the test to request the user to connect and disconnect devices on the USB ports of the machine. If I run the 2 tests in sequence ( they are numbered to impose the order) using debug, most of the time but not always, the second test fails to open the port.(report port is busy in serial Posix) If I run only the second test alone, using debug, it passes all the time.
I suspect possible interaction with the debugger keeping the port busy after the first test.
My question : How can I run the tests, using the testing tool but without the debugger and yet be able to answer to the input requests? in other words, where is the stdout when it not in the debugger window?
Comments