8000 tests/extmod/select_poll_eintr.py: Improve robustness of test. · micropython/micropython@8851800 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8851800

Browse files
committed
tests/extmod/select_poll_eintr.py: Improve robustness of test.
Increase allowed range of dt_ms, and print it in case of failure. Signed-off-by: Damien George <damien@micropython.org>
1 parent f6af484 commit 8851800

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/extmod/select_poll_eintr.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ def thread_main():
4141
result = poller.poll(400)
4242
dt_ms = (time.time_ns() - t0) / 1e6
4343
print("result:", result)
44-
print("dt in range:", 380 <= dt_ms <= 500)
44+
if 380 <= dt_ms <= 600:
45+
print("dt in range")
46+
else:
47+
print("dt not in range:", dt_ms)
4548

4649
# Clean up.
4750
s.close()

0 commit comments

Comments
 (0)
0