summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp32/tutorial
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-11-05 11:19:45 +1100
committerDamien George <damien@micropython.org>2024-11-13 11:44:09 +1100
commit69023622ee837df051ef7e606c2f0511015d01f7 (patch)
tree6c7290c6d7c1d4708611b03d649c34bce40b92db /docs/esp32/tutorial
parenteab2869990b83dc6baa451f8c4983a312539a0be (diff)
downloadmicropython-69023622ee837df051ef7e606c2f0511015d01f7.tar.gz
micropython-69023622ee837df051ef7e606c2f0511015d01f7.zip
tests/net_hosted: Improve and simplify non-block-xfer test.
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>
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions