circuitpython/tests/basics/io_stringio_with.py
Jim Mussared 4216bc7d13 tests: Replace umodule with module everywhere.
This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-06-08 17:54:24 +10:00

6 lines
104 B
Python

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