Skip to content
Snippets Groups Projects
Commit 571295d0 authored by Damien George's avatar Damien George
Browse files

tests/extmod/ujson_dump_iobase.py: Return number of bytes written.

Otherwise returning None indicates that the write would block and nothing
was actually written.  Fixes issue #3990.
parent 11a38d5d
Branches
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@ class S(io.IOBase):
# uPy passes a bytearray, CPython passes a str
buf = str(buf, 'ascii')
self.buf += buf
return len(buf)
# dump to the user stream
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment