summaryrefslogtreecommitdiff
path: root/tests/esp32/resolve_on_connect.py
AgeCommit message (Collapse)Author
2020-05-09esp32/modsocket: Fix getaddrinfo to raise on error.Thorsten von Eicken
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.