diff options
Diffstat (limited to 'tests/unix/extra_coverage.py')
-rw-r--r-- | tests/unix/extra_coverage.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unix/extra_coverage.py b/tests/unix/extra_coverage.py index 1c4cc6cf04..870e7d5f22 100644 --- a/tests/unix/extra_coverage.py +++ b/tests/unix/extra_coverage.py @@ -6,6 +6,7 @@ except NameError: sys.exit() import uerrno +import uio data = extra_coverage() @@ -45,6 +46,11 @@ except OSError: print('OSError') print(stream2.read(1)) # read 1 byte encounters non-blocking error with textio stream +# test BufferedWriter with stream errors +stream.set_error(uerrno.EAGAIN) +buf = uio.BufferedWriter(stream, 8) +print(buf.write(bytearray(16))) + # test basic import of frozen scripts import frzstr1 import frzmpy1 |