circuitpython/tests/basics/io_stringio_with.py

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

6 lines
104 B
Python
Raw Normal View History

import io
# test __enter__/__exit__
with io.StringIO() as b:
b.write("foo")
print(b.getvalue())