69023622ee
CPython changed its non-blocking socket behaviour recently and this test would not run under CPython anymore. So the following steps were taken to get the test working again and then simplify it: - Run the test against CPython 3.10.10 and capture the output into the .exp file for the test. - Run this test on unix port of MicroPython and verify that the output matches the CPython 3.10.10 output in the new .exp file (it did). From now on take unix MicroPython as the source of truth for this test when modifying it. - Remove all code that was there for CPython compatibility. - Make it print out more useful information during the test run, including names of the OSError errno values. - Add polling of the socket before the send/write/recv/read to verify that the poll gives the correct result in non-blocking mode. Tested on unix MicroPython, ESP32_GENERIC, PYBD_SF2 and RPI_PICO_W boards. Signed-off-by: Damien George <damien@micropython.org> |
||
---|---|---|
.. | ||
accept_nonblock.py | ||
accept_nonblock.py.exp | ||
accept_timeout.py | ||
accept_timeout.py.exp | ||
asyncio_loopback.py | ||
asyncio_loopback.py.exp | ||
asyncio_start_server.py | ||
asyncio_start_server.py.exp | ||
connect_nonblock_xfer.py | ||
connect_nonblock_xfer.py.exp | ||
connect_nonblock.py | ||
connect_nonblock.py.exp | ||
connect_poll.py | ||
connect_poll.py.exp | ||
connect_timeout.py | ||
README | ||
ssl_getpeercert.py | ||
ssl_getpeercert.py.exp | ||
ssl_verify_callback.py | ||
ssl_verify_callback.py.exp |
This directory contains network tests which require just "peer to peer" network connection between test host and device under test, instead of full Internet connection. Note that setup for these tests and tests themselves are WIP, and may not yet fully correspond to the functional specification above. So far, these tests are not run as part of the main testsuite and need to be run separately (from the main test/ directory): ./run-tests.py net_hosted/*.py