tests/extmod: Skip uselect_poll_udp when poll() is not available.

This is the same fix as applied in uselect_poll_basic.py.
pull/8142/head
stijn 2021-11-25 11:33:35 +01:00 zatwierdzone przez Damien George
rodzic 7955734aca
commit 19d949a866
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -5,7 +5,9 @@ try:
except ImportError:
try:
import socket, select
except ImportError:
select.poll # Raises AttributeError for CPython implementations without poll()
except (ImportError, AttributeError):
print("SKIP")
raise SystemExit