This website requires JavaScript.
Odkrywaj
Pomoc
Zarejestruj się
Zaloguj się
mirror
/
micropython
kopia lustrzana
https://github.com/micropython/micropython
Obserwuj
1
Polub
0
Forkuj
You've already forked micropython
0
Kod
Zgłoszenia
Projekty
Wydania
Wiki
Aktywność
e60e8079a7
micropython
/
tests
/
basics
/
io_stringio_with.py
6 wiersze
104 B
Python
Czysty
Zwykły widok
Historia
Unescape
Escape
tests: Replace umodule with module everywhere. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-08-18 06:57:45 +00:00
import
io
tests: Add missing tests for builtins, and many other things.
2015-04-04 21:05:30 +00:00
# test __enter__/__exit__
with
io
.
StringIO
(
)
as
b
:
b
.
write
(
"
foo
"
)
print
(
b
.
getvalue
(
)
)