circuitpython/tests/extmod
Damien George 514bf1a191 extmod/uasyncio: Fix race with cancelled task waiting on finished task.
This commit fixes a problem with a race between cancellation of task A and
completion of task B, when A waits on B.  If task B completes just before
task A is cancelled then the cancellation of A does not work.  Instead,
the CancelledError meant to cancel A gets passed through to B (that's
expected behaviour) but B handles it as a "Task exception wasn't retrieved"
scenario, printing out such a message (this is because finished tasks point
their "coro" attribute to themselves to indicate they are done, and
implement the throw() method, but that method inadvertently catches the
CancelledError).  The correct behaviour is for B to bounce that
CancelledError back out.

This bug is mainly seen when wait_for() is used, and in that context the
symptoms are:
- occurs when using wait_for(T, S), if the task T being waited on finishes
  at exactly the same time as the wait-for timeout S expires
- task T will have run to completion
- the "Task exception wasn't retrieved message" is printed with
  "<class 'CancelledError'>" as the error (ie no traceback)
- the wait_for(T, S) call never returns (it's never put back on the
  uasyncio run queue) and all tasks waiting on this are blocked forever
  from running
- uasyncio otherwise continues to function and other tasks continue to be
  scheduled as normal

The fix here reworks the "waiting" attribute of Task to be called "state"
and uses it to indicate whether a task is: running and not awaited on,
running and awaited on, finished and not awaited on, or finished and
awaited on.  This means the task does not need to point "coro" to itself to
indicate finished, and also allows removal of the throw() method.

A benefit of this is that "Task exception wasn't retrieved" messages can go
back to being able to print the name of the coroutine function.

Fixes issue #7386.

Signed-off-by: Damien George <damien@micropython.org>
2021-06-16 13:02:37 +10:00
..
btree1.py tests: Use .errno instead of .args[0] for OSError exceptions. 2021-04-23 22:03:46 +10:00
btree1.py.exp tests/extmod/btree1: Checks for put, seq, string print and unsupported binary op. 2016-10-05 00:17:22 +11:00
btree_error.py tests: Use .errno instead of .args[0] for OSError exceptions. 2021-04-23 22:03:46 +10:00
btree_error.py.exp tests/extmod: Add btree test for errors raised by btree DB library. 2020-04-27 23:59:09 +10:00
btree_gc.py tests/extmod/btree_gc.py: Close the database to avoid a memory leak. 2021-05-30 11:50:51 +10:00
btree_gc.py.exp extmod/modbtree: Retain reference to underlying stream so it's not GC'd. 2020-05-02 16:08:04 +10:00
framebuf1.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
framebuf1.py.exp extmod/modframebuf: Make monochrome bitmap formats start with MONO_. 2017-04-04 17:38:33 +10:00
framebuf2.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
framebuf2.py.exp extmod/modframebuf: Add 2-bit color format (GS2_HMSB). 2017-12-14 17:13:02 +11:00
framebuf4.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
framebuf4.py.exp tests/extmod/framebuf4: Add tests for GS4_HMSB framebuf format. 2017-01-25 23:20:19 +11:00
framebuf8.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
framebuf8.py.exp extmod/modframebuf: Add 8-bit greyscale format (GS8). 2017-12-14 17:36:13 +11:00
framebuf16.py tests: Make float and framebuf tests skip or run on big-endian archs. 2021-05-26 16:33:18 +10:00
framebuf16.py.exp extmod/modframebuf: Make FrameBuffer handle 16bit depth. 2016-12-01 16:43:25 +11:00
framebuf_subclass.py tests: Make float and framebuf tests skip or run on big-endian archs. 2021-05-26 16:33:18 +10:00
framebuf_subclass.py.exp extmod/modframebuf: Allow blit source to be a subclass of FrameBuffer. 2020-02-21 13:32:48 +11:00
machine1.py extmod/machine_mem: Only allow integers in machine.memX subscript. 2020-11-13 11:13:37 +11:00
machine1.py.exp extmod/machine_mem: Only allow integers in machine.memX subscript. 2020-11-13 11:13:37 +11:00
machine_pinbase.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
machine_pinbase.py.exp tests: Add a testcase for machine.PinBase class. 2016-06-19 19:45:29 +03:00
machine_pulse.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
machine_pulse.py.exp extmod/machine_pulse: Make time_pulse_us() not throw exceptions. 2017-02-05 14:20:17 +03:00
machine_signal.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
machine_signal.py.exp tests/extmod: Add test for machine.Signal class. 2017-03-02 16:09:16 +11:00
machine_timer.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
machine_timer.py.exp tests/extmod: Add basic machine.Timer test. 2020-01-22 17:31:18 +11:00
ticks_diff.py tests/run-tests: Auto-skip extmod/ticks_diff, extmod/time_ms_us tests. 2020-02-11 10:56:49 +11:00
ticks_diff.py.exp tests/extmod/ticks_diff: Test for new semantics of ticks_diff(). 2016-10-30 21:33:12 +03:00
time_ms_us.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
time_ms_us.py.exp tests/extmod/time_ms_us: Add test for calling ticks_cpu(). 2018-03-04 00:17:33 +11:00
uasyncio_await_return.py tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_await_return.py.exp tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_basic.py tests/extmod: Add test for uasyncio.sleep of a negative time. 2020-08-22 12:17:06 +10:00
uasyncio_basic.py.exp tests/extmod: Add test for uasyncio.sleep of a negative time. 2020-08-22 12:17:06 +10:00
uasyncio_basic2.py tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_basic2.py.exp tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_cancel_fair.py tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_cancel_fair.py.exp tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_cancel_fair2.py tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_cancel_fair2.py.exp tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_cancel_self.py tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_cancel_self.py.exp extmod/uasyncio: Change cannot to can't in error message, and test exp. 2020-04-14 21:51:25 +10:00
uasyncio_cancel_task.py tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_cancel_task.py.exp tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_cancel_wait_on_finished.py extmod/uasyncio: Fix race with cancelled task waiting on finished task. 2021-06-16 13:02:37 +10:00
uasyncio_cancel_wait_on_finished.py.exp extmod/uasyncio: Fix race with cancelled task waiting on finished task. 2021-06-16 13:02:37 +10:00
uasyncio_current_task.py extmod/uasyncio: Add asyncio.current_task(). 2021-02-13 15:11:17 +11:00
uasyncio_current_task.py.exp extmod/uasyncio: Add asyncio.current_task(). 2021-02-13 15:11:17 +11:00
uasyncio_event.py tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_event.py.exp tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_event_fair.py tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_event_fair.py.exp tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_exception.py tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_exception.py.exp tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_fair.py tests/extmod: Make uasyncio_fair test more reliable by adjusting sleeps. 2020-08-26 17:05:52 +10:00
uasyncio_fair.py.exp extmod/uasyncio: Truncate negative sleeps to 0. 2020-08-22 12:17:06 +10:00
uasyncio_gather.py all: Update Python code to conform to latest black formatting. 2020-08-29 15:18:01 +10:00
uasyncio_gather.py.exp tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_get_event_loop.py tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_heaplock.py tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_heaplock.py.exp tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_lock.py tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_lock.py.exp tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_lock_cancel.py tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_lock_cancel.py.exp tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_loop_stop.py extmod/uasyncio: Implement Loop.stop() to stop the event loop. 2020-04-02 00:14:18 +11:00
uasyncio_loop_stop.py.exp extmod/uasyncio: Implement Loop.stop() to stop the event loop. 2020-04-02 00:14:18 +11:00
uasyncio_micropython.py extmod/uasyncio: Add asyncio.wait_for_ms function. 2020-06-10 22:29:44 +10:00
uasyncio_micropython.py.exp extmod/uasyncio: Add asyncio.wait_for_ms function. 2020-06-10 22:29:44 +10:00
uasyncio_new_event_loop.py extmod/uasyncio: Add Loop.new_event_loop method. 2020-04-13 22:16:52 +10:00
uasyncio_new_event_loop.py.exp extmod/uasyncio: Add Loop.new_event_loop method. 2020-04-13 22:16:52 +10:00
uasyncio_set_exception_handler.py extmod/uasyncio: Delay calling Loop.call_exception_handler by 1 loop. 2020-12-02 12:07:06 +11:00
uasyncio_set_exception_handler.py.exp extmod/uasyncio: Delay calling Loop.call_exception_handler by 1 loop. 2020-12-02 12:07:06 +11:00
uasyncio_task_done.py extmod/uasyncio: Add Task.done() method. 2020-12-02 12:07:06 +11:00
uasyncio_task_done.py.exp extmod/uasyncio: Add Task.done() method. 2020-12-02 12:07:06 +11:00
uasyncio_threadsafeflag.py tests/extmod: Add test for ThreadSafeFlag. 2021-02-16 17:08:36 +11:00
uasyncio_threadsafeflag.py.exp tests/extmod: Add test for ThreadSafeFlag. 2021-02-16 17:08:36 +11:00
uasyncio_wait_for.py extmod/uasyncio: Fix cancellation handling of wait_for. 2020-12-02 12:31:37 +11:00
uasyncio_wait_for.py.exp extmod/uasyncio: Fix cancellation handling of wait_for. 2020-12-02 12:31:37 +11:00
uasyncio_wait_for_fwd.py extmod/uasyncio: Fix cancellation handling of wait_for. 2020-12-02 12:31:37 +11:00
uasyncio_wait_for_fwd.py.exp extmod/uasyncio: Fix cancellation handling of wait_for. 2020-12-02 12:31:37 +11:00
uasyncio_wait_task.py tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
uasyncio_wait_task.py.exp tests/extmod: Add uasyncio tests. 2020-03-26 01:25:45 +11:00
ubinascii_a2b_base64.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ubinascii_b2a_base64.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ubinascii_crc32.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ubinascii_hexlify.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ubinascii_micropython.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ubinascii_micropython.py.exp extmod/modubinascii: Add check for empty buffer passed to hexlify. 2017-07-03 14:52:00 +10:00
ubinascii_unhexlify.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ucryptolib_aes128_cbc.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ucryptolib_aes128_cbc.py.exp tests/extmod/ucryptolib*: Add tests for ucryptolib module. 2018-06-27 14:56:31 +10:00
ucryptolib_aes128_ctr.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ucryptolib_aes128_ctr.py.exp extmod/moducryptolib: Add AES-CTR support. 2019-05-06 18:09:48 +10:00
ucryptolib_aes128_ecb.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ucryptolib_aes128_ecb.py.exp tests/extmod/ucryptolib*: Add tests for ucryptolib module. 2018-06-27 14:56:31 +10:00
ucryptolib_aes128_ecb_enc.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ucryptolib_aes128_ecb_enc.py.exp tests/extmod/ucryptolib*: Add tests for ucryptolib module. 2018-06-27 14:56:31 +10:00
ucryptolib_aes128_ecb_inpl.py tests/extmod/ucryptolib*: Add into and inplace tests for ucryptolib. 2018-06-27 14:56:46 +10:00
ucryptolib_aes128_ecb_inpl.py.exp tests/extmod/ucryptolib*: Add into and inplace tests for ucryptolib. 2018-06-27 14:56:46 +10:00
ucryptolib_aes128_ecb_into.py tests/extmod/ucryptolib*: Add into and inplace tests for ucryptolib. 2018-06-27 14:56:46 +10:00
ucryptolib_aes128_ecb_into.py.exp tests/extmod/ucryptolib*: Add into and inplace tests for ucryptolib. 2018-06-27 14:56:46 +10:00
ucryptolib_aes256_cbc.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ucryptolib_aes256_cbc.py.exp tests/extmod/ucryptolib*: Add tests for ucryptolib module. 2018-06-27 14:56:31 +10:00
ucryptolib_aes256_ecb.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ucryptolib_aes256_ecb.py.exp tests/extmod/ucryptolib*: Add tests for ucryptolib module. 2018-06-27 14:56:31 +10:00
uctypes_32bit_intbig.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uctypes_32bit_intbig.py.exp extmod/moductypes: Fix bigint handling for 32-bit ports. 2017-04-21 16:43:21 +03:00
uctypes_array_assign_le.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uctypes_array_assign_le.py.exp tests/uctypes: Test item assignment for scalar arrays. 2016-01-03 20:32:51 +02:00
uctypes_array_assign_native_le.py all: Rename "sys" module to "usys". 2020-09-04 00:10:24 +10:00
uctypes_array_assign_native_le.py.exp tests/uctypes_array_assign_native_le: Split off intbig part. 2017-03-07 08:40:03 +01:00
uctypes_array_assign_native_le_intbig.py all: Rename "sys" module to "usys". 2020-09-04 00:10:24 +10:00
uctypes_array_assign_native_le_intbig.py.exp tests/uctypes_array_assign_native_le: Split off intbig part. 2017-03-07 08:40:03 +01:00
uctypes_array_load_store.py py/binary: Fix sign extension setting wide integer on 32-bit archs. 2020-11-11 22:18:24 +11:00
uctypes_array_load_store.py.exp py/binary: Fix sign extension setting wide integer on 32-bit archs. 2020-11-11 22:18:24 +11:00
uctypes_bytearray.py tests/extmod: Add some uctypes tests to improve coverage of that module. 2017-12-19 16:48:41 +11:00
uctypes_bytearray.py.exp tests/extmod: Add some uctypes tests to improve coverage of that module. 2017-12-19 16:48:41 +11:00
uctypes_byteat.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uctypes_byteat.py.exp tests/extmod: Add some uctypes tests to improve coverage of that module. 2017-12-19 16:48:41 +11:00
uctypes_error.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uctypes_error.py.exp tests/extmod/uctypes_error: Add test for unsupported unary op. 2018-12-10 14:29:41 +11:00
uctypes_le.py all: Update Python code to conform to latest black formatting. 2020-08-29 15:18:01 +10:00
uctypes_le.py.exp tests/extmod: Improve moductypes test coverage. 2016-12-12 17:09:14 +11:00
uctypes_le_float.py extmod/moductypes: Fix size and offset calculation for ARRAY of FLOAT32. 2021-05-06 13:11:33 +10:00
uctypes_le_float.py.exp extmod/moductypes: Fix size and offset calculation for ARRAY of FLOAT32. 2021-05-06 13:11:33 +10:00
uctypes_native_float.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uctypes_native_float.py.exp extmod/uctypes: Finish support for FLOAT32 and FLOAT64 types. 2016-03-19 21:59:42 +00:00
uctypes_native_le.py all: Rename "sys" module to "usys". 2020-09-04 00:10:24 +10:00
uctypes_native_le.py.exp tests/extmod: Improve moductypes test coverage. 2016-12-12 17:09:14 +11:00
uctypes_print.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uctypes_print.py.exp tests/extmod: Improve moductypes test coverage. 2016-12-12 17:09:14 +11:00
uctypes_ptr_le.py all: Rename "sys" module to "usys". 2020-09-04 00:10:24 +10:00
uctypes_ptr_le.py.exp tests/extmod/uctypes_ptr_le: Test int() operation on a pointer field. 2018-12-10 14:25:06 +11:00
uctypes_ptr_native_le.py all: Rename "sys" module to "usys". 2020-09-04 00:10:24 +10:00
uctypes_ptr_native_le.py.exp moductypes: Foreign data interface module, roughly based on ctype ideas. 2014-07-09 19:28:24 +03:00
uctypes_sizeof.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uctypes_sizeof.py.exp tests/extmod: Add some uctypes tests to improve coverage of that module. 2017-12-19 16:48:41 +11:00
uctypes_sizeof_float.py extmod/moductypes: Fix size and offset calculation for ARRAY of FLOAT32. 2021-05-06 13:11:33 +10:00
uctypes_sizeof_float.py.exp extmod/moductypes: Fix size and offset calculation for ARRAY of FLOAT32. 2021-05-06 13:11:33 +10:00
uctypes_sizeof_layout.py tests/extmod/uctypes_sizeof_layout: Test for sizeof of different layout. 2018-10-23 11:33:35 +11:00
uctypes_sizeof_layout.py.exp tests/extmod/uctypes_sizeof_layout: Test for sizeof of different layout. 2018-10-23 11:33:35 +11:00
uctypes_sizeof_native.py all: Update Python code to conform to latest black formatting. 2020-08-29 15:18:01 +10:00
uctypes_sizeof_native.py.exp moductypes: Foreign data interface module, roughly based on ctype ideas. 2014-07-09 19:28:24 +03:00
uctypes_sizeof_od.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uctypes_sizeof_od.py.exp tests/uctypes_sizeof_od: Test for using OrderedDict as struct descriptor 2018-10-13 16:08:25 +11:00
uhashlib_final.py extmod/moduhashlib: Put hash obj in final state after digest is called. 2021-05-26 21:44:46 +10:00
uhashlib_final.py.exp extmod/moduhashlib: Put hash obj in final state after digest is called. 2021-05-26 21:44:46 +10:00
uhashlib_md5.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uhashlib_sha1.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uhashlib_sha256.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uheapq1.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ujson_dump.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ujson_dump_iobase.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ujson_dumps.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ujson_dumps_extra.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ujson_dumps_extra.py.exp tests: Add tests to improve coverage of objstr.c. 2015-09-03 23:06:18 +01:00
ujson_dumps_float.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ujson_dumps_ordereddict.py py/objdict: Support ujson.dump() of OrderedDict objects. 2019-11-13 13:51:18 +11:00
ujson_load.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ujson_loads.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ujson_loads_bytes.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ujson_loads_bytes.py.exp tests/extmod: Split json.loads of bytes/bytearray into separate test. 2019-08-22 15:45:13 +10:00
ujson_loads_float.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
urandom_basic.py extmod/modurandom: Support an argument of bits=0 to getrandbits. 2021-05-30 17:05:56 +10:00
urandom_basic.py.exp extmod/modurandom: Support an argument of bits=0 to getrandbits. 2021-05-30 17:05:56 +10:00
urandom_extra.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
urandom_extra_float.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
urandom_seed_default.py extmod/modurandom: Support urandom.seed() without an argument. 2020-10-29 14:15:16 +11:00
ure1.py extmod/ure: Use single function for match/search/sub. 2020-06-08 09:16:09 +02:00
ure_debug.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ure_debug.py.exp tests/extmod: Add test for ure debug printing when compiling a regex. 2017-01-26 23:45:51 +11:00
ure_error.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ure_group.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ure_groups.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ure_limit.py extmod/re1.5: Check and report byte overflow errors in _compilecode. 2021-04-06 13:36:42 +10:00
ure_limit.py.exp extmod/re1.5: Check and report byte overflow errors in _compilecode. 2021-04-06 13:36:42 +10:00
ure_namedclass.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ure_span.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ure_split.py extmod/modure: If input string is bytes, return bytes results too. 2017-07-01 01:25:45 +03:00
ure_split_empty.py tests: Convert remaining "sys.exit()" to "raise SystemExit". 2017-06-10 20:34:38 +03:00
ure_split_empty.py.exp tests/extmod: Move split-on-empty-match tests to a separate test file. 2016-04-26 10:19:04 +01:00
ure_split_notimpl.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ure_split_notimpl.py.exp tests/extmod: Improve test coverage of ure module. 2017-01-17 17:42:37 +11:00
ure_stack_overflow.py tests/extmod: Add test for ure regexes leading to infinite recursion. 2017-10-03 00:24:32 +03:00
ure_stack_overflow.py.exp tests/extmod: Add test for ure regexes leading to infinite recursion. 2017-10-03 00:24:32 +03:00
ure_sub.py extmod/modure: Allow \\ in re.sub replacements. 2020-09-30 23:18:34 +10:00
ure_sub_unmatched.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ure_sub_unmatched.py.exp extmod/modure: Add ure.sub() function and method, and tests. 2018-07-02 14:55:02 +10:00
uselect_poll_basic.py tests: Use .errno instead of .args[0] for OSError exceptions. 2021-04-23 22:03:46 +10:00
uselect_poll_udp.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
usocket_tcp_basic.py tests: Use .errno instead of .args[0] for OSError exceptions. 2021-04-23 22:03:46 +10:00
usocket_udp_nonblock.py tests: Use .errno instead of .args[0] for OSError exceptions. 2021-04-23 22:03:46 +10:00
ussl_basic.py extmod/modussl: Improve exception error messages. 2020-07-20 23:41:45 +10:00
ussl_basic.py.exp extmod/modussl: Improve exception error messages. 2020-07-20 23:41:45 +10:00
ussl_keycert.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
ussl_keycert.py.exp tests/extmod: Add test for ussl when passing in key/cert params. 2019-10-31 16:38:20 +11:00
utime_res.py tests/extmod: Add test for the precision of utime functions. 2021-01-23 16:54:57 +11:00
utime_res.py.exp tests/extmod: Add test for the precision of utime functions. 2021-01-23 16:54:57 +11:00
utime_time_ns.py tests/extmod/utime_time_ns.py: Relax bounds on time_ns measurement. 2021-02-01 18:44:28 +11:00
utime_time_ns.py.exp extmod/utime_mphal: Add generic utime.time_ns() function. 2020-10-01 14:20:42 +10:00
utimeq1.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
utimeq1.py.exp tests/extmod: Add test for utimeq module. 2016-12-22 00:31:38 +03:00
utimeq_stable.py tests: Convert remaining "sys.exit()" to "raise SystemExit". 2017-06-10 20:34:38 +03:00
utimeq_stable.py.exp tests/utimeq_stable: Test for partial stability of utimeq queuing. 2016-12-24 00:25:15 +03:00
uzlib_decompio.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uzlib_decompio.py.exp tests/extmod/uzlib_decompio: Add zlib bitstream testcases. 2016-09-04 14:45:27 +03:00
uzlib_decompio_gz.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
uzlib_decompio_gz.py.exp tests/extmod: Improve tinfgzip.c test coverage. 2017-03-14 22:13:36 +11:00
uzlib_decompress.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
vfs_basic.py extmod/vfs: Fix lookup of entry in root dir so it fails correctly. 2020-09-23 16:23:35 +10:00
vfs_basic.py.exp extmod/vfs: Fix lookup of entry in root dir so it fails correctly. 2020-09-23 16:23:35 +10:00
vfs_blockdev.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
vfs_blockdev.py.exp tests/extmod: Add test for blockdev with standard and extended protocol. 2019-10-29 14:17:29 +11:00
vfs_fat_fileio1.py tests: Use .errno instead of .args[0] for OSError exceptions. 2021-04-23 22:03:46 +10:00
vfs_fat_fileio1.py.exp tests/extmod: Split out VfsFat finaliser tests to separate test file. 2019-12-27 12:30:51 +11:00
vfs_fat_fileio2.py tests: Use .errno instead of .args[0] for OSError exceptions. 2021-04-23 22:03:46 +10:00
vfs_fat_fileio2.py.exp extmod/vfs_fat: Add file size as 4th element of uos.ilistdir tuple. 2018-03-12 12:26:36 +11:00
vfs_fat_finaliser.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
vfs_fat_finaliser.py.exp tests/extmod: Split out VfsFat finaliser tests to separate test file. 2019-12-27 12:30:51 +11:00
vfs_fat_more.py tests: Use .errno instead of .args[0] for OSError exceptions. 2021-04-23 22:03:46 +10:00
vfs_fat_more.py.exp tests/extmod: Add test for importing a script from a user VFS. 2018-06-06 14:28:23 +10:00
vfs_fat_mtime.py tests/extmod: Add tests for verifying FAT and littlefs mtime values. 2020-09-02 00:19:38 +10:00
vfs_fat_mtime.py.exp tests/extmod: Add tests for verifying FAT and littlefs mtime values. 2020-09-02 00:19:38 +10:00
vfs_fat_oldproto.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
vfs_fat_oldproto.py.exp extmod/vfs_fat: Add file size as 4th element of uos.ilistdir tuple. 2018-03-12 12:26:36 +11:00
vfs_fat_ramdisk.py tests: Use .errno instead of .args[0] for OSError exceptions. 2021-04-23 22:03:46 +10:00
vfs_fat_ramdisk.py.exp tests/extmod: Add tests for verifying FAT and littlefs mtime values. 2020-09-02 00:19:38 +10:00
vfs_fat_ramdisklarge.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
vfs_fat_ramdisklarge.py.exp tests/extmod: Add test for FAT filesystem on a very large block device. 2019-03-27 10:22:38 +11:00
vfs_lfs.py extmod/vfs_lfs: Add mtime support to littlefs files. 2020-08-25 17:35:19 +10:00
vfs_lfs.py.exp extmod/vfs_lfs: Add mtime support to littlefs files. 2020-08-25 17:35:19 +10:00
vfs_lfs_corrupt.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
vfs_lfs_corrupt.py.exp tests/extmod: Add littlefs tests. 2019-10-29 14:17:29 +11:00
vfs_lfs_error.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
vfs_lfs_error.py.exp tests/extmod: Add littlefs tests. 2019-10-29 14:17:29 +11:00
vfs_lfs_file.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
vfs_lfs_file.py.exp tests/extmod: Add littlefs tests. 2019-10-29 14:17:29 +11:00
vfs_lfs_mount.py tests/extmod: Add test to try and mount a block device directly. 2020-12-17 22:43:19 +11:00
vfs_lfs_mount.py.exp tests/extmod: Add test to try and mount a block device directly. 2020-12-17 22:43:19 +11:00
vfs_lfs_mtime.py tests/extmod: Add tests for verifying FAT and littlefs mtime values. 2020-09-02 00:19:38 +10:00
vfs_lfs_mtime.py.exp tests/extmod: Add tests for verifying FAT and littlefs mtime values. 2020-09-02 00:19:38 +10:00
vfs_lfs_superblock.py extmod/vfs: Check block 0 and 1 when auto-detecting littlefs. 2021-01-29 15:02:55 +11:00
vfs_lfs_superblock.py.exp extmod/vfs: Check block 0 and 1 when auto-detecting littlefs. 2021-01-29 15:02:55 +11:00
vfs_posix.py tests/extmod/vfs_posix.py: Add more tests for VfsPosix class. 2021-02-11 23:49:44 +11:00
vfs_posix.py.exp tests/extmod/vfs_posix.py: Add more tests for VfsPosix class. 2021-02-11 23:49:44 +11:00
vfs_userfs.py all: Rename "sys" module to "usys". 2020-09-04 00:10:24 +10:00
vfs_userfs.py.exp extmod/vfs_reader: Fix mp_reader_new_file to open file in "rb" mode. 2020-08-12 23:40:50 +10:00
websocket_basic.py tests: Use .errno instead of .args[0] for OSError exceptions. 2021-04-23 22:03:46 +10:00
websocket_basic.py.exp tests/extmod: Rename websocket test to websocket_basic. 2017-03-10 15:05:08 +11:00