mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-17 01:51:39 +09:00
15 lines
197 B
Python
15 lines
197 B
Python
|
|
|
|
import io
|
|
|
|
f = io.StringIO()
|
|
f.write('bladibla')
|
|
assert f.getvalue() == 'bladibla'
|
|
|
|
# TODO:
|
|
# print('fubar', file=f, end='')
|
|
print(f.getvalue())
|
|
|
|
# TODO:
|
|
# assert f.getvalue() == 'bladiblafubar'
|