Skip to content

Commit

Permalink
tests/extmod: Skip uselect_poll_udp when poll() is not available.
Browse files Browse the repository at this point in the history
This is the same fix as applied in uselect_poll_basic.py.
  • Loading branch information
stinos authored and dpgeorge committed Jan 4, 2022
1 parent 7955734 commit 19d949a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/extmod/uselect_poll_udp.py
Expand Up @@ -5,7 +5,9 @@
except ImportError:
try:
import socket, select
except ImportError:

select.poll # Raises AttributeError for CPython implementations without poll()
except (ImportError, AttributeError):
print("SKIP")
raise SystemExit

Expand Down

0 comments on commit 19d949a

Please sign in to comment.