Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/tests/micropython/builtin_execfile.py.exp

8 lines
84 B
Plaintext
Raw Normal View History

tests/micropython: Add test for builtin execfile() function. Signed-off-by: Damien George <damien@micropython.org>
2022-06-29 12:48:42 +10:00
mount False False
open /noexist.py rb
OSError
open /test.py rb
123
py/builtinevex: Handle invalid filenames for execfile. If a non-string buffer was passed to execfile, then it would be passed as a non-null-terminated char* to mp_lexer_new_from_file. This changes mp_lexer_new_from_file to take a qstr instead (as in almost all cases a qstr will be created from this input anyway to set the `__file__` attribute on the module). This now makes execfile require a string (not generic buffer) argument, which is probably a good fix to make anyway. Fixes issue #12522. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-09-27 13:43:50 +10:00
TypeError
tests/micropython: Add test for builtin execfile() function. Signed-off-by: Damien George <damien@micropython.org>
2022-06-29 12:48:42 +10:00
umount
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 65ms Template: 0ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API