1 parent ad9b9c7 commit 0b52228Copy full SHA for 0b52228
2 files changed
tests/io/write_ext.py
@@ -0,0 +1,25 @@
1
+import uio
2
+
3
+try:
4
+ uio.BytesIO
5
+except AttributeError:
6
+ import sys
7
+ print('SKIP')
8
+ sys.exit()
9
10
+buf = uio.BytesIO()
11
12
+buf.write(b"foo", 2)
13
+print(buf.getvalue())
14
15
+buf.write(b"foo", 100)
16
17
18
+buf.write(b"foobar", 1, 3)
19
20
21
+buf.write(b"foobar", 1, 100)
22
23
24
+buf.write(b"foobar", 100, 100)
25
tests/io/write_ext.py.exp
@@ -0,0 +1,5 @@
+b'fo'
+b'fofoo'
+b'fofoooob'
+b'fofooooboobar'
0 commit comments