mirror of
https://github.com/micropython/micropython.git
synced 2025-09-07 02:10:52 +02:00
7 lines
112 B
Python
7 lines
112 B
Python
import _io as io
|
|
|
|
# test __enter__/__exit__
|
|
with io.StringIO() as b:
|
|
b.write("foo")
|
|
print(b.getvalue())
|