kopia lustrzana https://github.com/micropython/micropython
tests/extmod: Skip uselect test when CPython doesn't have poll().
CPython does not have an implementation of select.poll() on some operating systems (Windows, OSX depending on version) so skip the test in those cases instead of failing it.pull/4271/head
rodzic
e328a5d469
commit
06643a0df4
|
@ -3,7 +3,8 @@ try:
|
|||
except ImportError:
|
||||
try:
|
||||
import socket, select, errno
|
||||
except ImportError:
|
||||
select.poll # Raises AttributeError for CPython implementations without poll()
|
||||
except (ImportError, AttributeError):
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue