• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

micropython / micropython / 14118
98%

Build:
DEFAULT BRANCH: master
Ran 12 Aug 2020 02:14PM UTC
Jobs 1
Files 274
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
14118

push

travis-ci-com

dpgeorge
extmod/vfs_reader: Fix mp_reader_new_file to open file in "rb" mode.

mp_reader_new_file() is used to read in files for importing, either .py or
.mpy files, for the lexer and persistent code loader respectively.  In both
cases the file should be opened in raw bytes mode: the lexer handles
unicode characters itself, and .mpy files contain 8-bit bytes by nature.

Before this commit importing was working correctly because, although the
file was opened in text mode, all native filesystem implementations (POSIX,
FAT, LFS) would access the file in raw bytes mode via mp_stream_rw()
calling mp_stream_p_t.read().  So it was only an issue for non-native
filesystems, such as those implemented in Python.  For Python-based
filesystem implementations, a call to mp_stream_rw() would go via IOBase
and then to readinto() at the Python level, and readinto() is only defined
on files opened in raw bytes mode.

Signed-off-by: Damien George <damien@micropython.org>

3 of 3 new or added lines in 1 file covered. (100.0%)

19467 of 19861 relevant lines covered (98.02%)

438030.85 hits per line

Jobs
ID Job ID Ran Files Coverage
5 14118.5 (MAKEOPTS="-j4") 12 Aug 2020 02:14PM UTC 0
98.02
Travis Job 14118.5
Source Files on build 14118
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #14118
  • 60f5b941 on github
  • Prev Build on master (#14116)
  • Next Build on master (#14137)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc