micropython/tests/net_inet
Thorsten von Eicken ab4e197707 esp32/modsocket: Fix getaddrinfo to raise on error.
This commit fixes the behaviour of socket.getaddrinfo on the ESP32 so it
raises an OSError when the name resolution fails instead of returning a []
or a resolution for 0.0.0.0.

Tests are added (generic and ESP32-specific) to verify behaviour consistent
with CPython, modulo the different types of exceptions per MicroPython
documentation.
2020-05-09 16:43:48 +10:00
..
README tests/net_inet: Move tests which don't require full Internet to net_hosted. 2017-06-23 21:12:32 +03:00
getaddrinfo.py esp32/modsocket: Fix getaddrinfo to raise on error. 2020-05-09 16:43:48 +10:00
test_tls_sites.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
test_tls_sites.py.exp tests/net_inet: Update tls test to work with CPython and incl new site. 2017-10-26 12:29:24 +11:00
uasyncio_cancel_stream.py tests/net_inet: Add uasyncio internet tests. 2020-03-26 01:25:45 +11:00
uasyncio_cancel_stream.py.exp tests/net_inet: Add uasyncio internet tests. 2020-03-26 01:25:45 +11:00
uasyncio_open_connection.py tests/net_inet: Add uasyncio internet tests. 2020-03-26 01:25:45 +11:00
uasyncio_open_connection.py.exp tests/net_inet: Add uasyncio internet tests. 2020-03-26 01:25:45 +11:00
uasyncio_tcp_read_headers.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uasyncio_tcp_read_headers.py.exp tests/net_inet: Add uasyncio internet tests. 2020-03-26 01:25:45 +11:00

README

This directory contains network tests which require Internet connection.
Note that these tests are not run as part of the main testsuite and need
to be run seperately (from the main test/ directory):

    ./run-tests net_inet/*.py