441460d81f
It raises on EOFError instead of an IncompleteReadError (which is what CPython does). But the latter is derived from EOFError so code compatible with MicroPython and CPython can be written by catching EOFError (eg see included test). Fixes issue #6156. Signed-off-by: Damien George <damien@micropython.org>
11 lines
90 B
Plaintext
11 lines
90 B
Plaintext
--- instance0 ---
|
|
server running
|
|
close
|
|
done
|
|
--- instance1 ---
|
|
b'ab'
|
|
b''
|
|
b'c'
|
|
EOFError
|
|
b''
|