mirror of
https://github.com/micropython/micropython.git
synced 2025-08-05 04:11:12 +02:00
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
6 lines
104 B
Python
6 lines
104 B
Python
import io
|
|
# test __enter__/__exit__
|
|
with io.StringIO() as b:
|
|
b.write("foo")
|
|
print(b.getvalue())
|