circuitpython/tests/basics/io_stringio_with.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
105 B
Python
Raw Normal View History

2023-08-22 11:15:46 -04:00
import io
# test __enter__/__exit__
with io.StringIO() as b:
b.write("foo")
print(b.getvalue())