提交 88518009 编写于 作者: D Damien George

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: NDamien George <damien@micropython.org>
上级 f6af4841
......@@ -41,7 +41,10 @@ t0 = time.time_ns()
result = poller.poll(400)
dt_ms = (time.time_ns() - t0) / 1e6
print("result:", result)
print("dt in range:", 380 <= dt_ms <= 500)
if 380 <= dt_ms <= 600:
print("dt in range")
else:
print("dt not in range:", dt_ms)
# Clean up.
s.close()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册