diff options
author | Thorsten von Eicken <tve@voneicken.com> | 2020-04-28 10:58:43 -0700 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-05-09 16:43:48 +1000 |
commit | ab4e197707cd456499d680091fdc9daeff18c62a (patch) | |
tree | a8af94aeda01b21aa417cd1aa35f37653e79808d /extmod/nimble/modbluetooth_nimble.c | |
parent | adb673302238bb1129ad62e7783dc650aaa27277 (diff) |
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.
Diffstat (limited to 'extmod/nimble/modbluetooth_nimble.c')
0 files changed, 0 insertions, 0 deletions