We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 565f590 commit 9144b1fCopy full SHA for 9144b1f
1 file changed
tests/io/iobase.py
@@ -0,0 +1,19 @@
1
+try:
2
+ import uio as io
3
+except:
4
+ import io
5
+
6
7
+ io.IOBase
8
+except AttributeError:
9
+ print('SKIP')
10
+ raise SystemExit
11
12
13
+class MyIO(io.IOBase):
14
+ def write(self, buf):
15
+ # CPython and uPy pass in different types for buf (str vs bytearray)
16
+ print('write', len(buf))
17
+ return len(buf)
18
19
+print('test', file=MyIO())
0 commit comments