This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
micropython
Watch
1
Star
0
Fork
0
You've already forked micropython
mirror of
https://github.com/licsber/micropython.git
synced
2024-09-21 17:40:24 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
bbced3b4bb
micropython
/
tests
/
unicode
/
file1.py
5 lines
95 B
Python
Raw
Normal View
History
Unescape
Escape
Use mode/encoding kwargs in io and unicode tests mode argument is used to assert it works encoding argument is used to make sure CPython uses the correct encoding as it does not automatically use utf-8
2014-10-04 14:54:16 +08:00
f
=
open
(
"
unicode/data/utf-8_1.txt
"
,
encoding
=
"
utf-8
"
)
tests: Add basic test for unicode file i/o.
2014-06-16 04:28:39 +08:00
l
=
f
.
readline
(
)
print
(
l
)
print
(
len
(
l
)
)
Reference in New Issue
Copy Permalink