summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/bytearray_construct_array.py
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2025-06-13 17:24:08 +0200
committerDamien George <damien@micropython.org>2025-06-17 10:15:59 +1000
commitb6b7d64bd9257cc1c138d37033108dcff5ceb89e (patch)
tree34cbfaaeec6a62bf98b9d6be82668c15351f391f /tests/basics/bytearray_construct_array.py
parent5ade8b7058f95e77a0d62d523c8443647f176532 (diff)
downloadmicropython-b6b7d64bd9257cc1c138d37033108dcff5ceb89e.tar.gz
micropython-b6b7d64bd9257cc1c138d37033108dcff5ceb89e.zip
py/modio: Fix the case where write fails in BufferedWriter.flush.
Previously, there was no test coverage of the "write failed" path. In fact, the assertion would fire instead of gracefully raising a Python exception. Slightly re-organize the code to place the assertion later. Add a test case which exercises all paths, and update the expected output. Signed-off-by: Jeff Epler <jepler@gmail.com>
Diffstat (limited to 'tests/basics/bytearray_construct_array.py')
0 files changed, 0 insertions, 0 deletions