summaryrefslogtreecommitdiffstatshomepage
path: root/tests/import/ext/micropython.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-01-05 10:35:34 +1100
committerDamien George <damien@micropython.org>2024-01-05 10:35:34 +1100
commita003ac2f73b8f54643e42138ad10249e2b861b63 (patch)
tree7312322c87bc12602d8aa26d65ecde07b2f3942c /tests/import/ext/micropython.py
parent2265d70add3ecfaf2ffbfb8393ab29a887d8d7fd (diff)
downloadmicropython-a003ac2f73b8f54643e42138ad10249e2b861b63.tar.gz
micropython-a003ac2f73b8f54643e42138ad10249e2b861b63.zip
tests/thread: Add a test for accuracy of sleep within a thread.
The existing thread_sleep1.py test only tests execution, not accuracy, of time.sleep. Also the existing test only tests sleep(0) on targets like rp2 that can only create a single thread. The new test in this commit checks for timing accuracy on the main thread and one other thread when they run at the same time. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/import/ext/micropython.py')
0 files changed, 0 insertions, 0 deletions