8000 tests/extmod: Close socket before polling to get error state. · micropython/micropython@5aaa0e2 · GitHub
[go: up one dir, main page]

Skip to content

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/extmod/uevent_basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
# Unregister socket via poll entry.
2727
entry.unregister()
2828

29-
# Poll a new socket, should be readable and writable (because it's in an error state).
29+
# Poll a closed socket, should be readable and writable.
3030
entry = poller.register(s, 3)
31+
s.close()
3132
poller.poll_ms(1)
3233
ready = list(poller)
3334
print(len(ready), ready[0].flags)
34-
poller.unregister(entry)
3535

3636
# Register many sockets to test reallocation of internal array.
3737
poller.register(s)

0 commit comments

Comments
 (0)
0