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

This is the same fix as applied in uselect_poll_basic.py.
This commit is contained in:
stijn 2021-11-25 11:33:35 +01:00 committed by Damien George
parent 7955734aca
commit 19d949a866
1 changed files with 3 additions and 1 deletions

View File

@ -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