32 Commits (7c51cb2307eaca1a1ccc071e0bb5eb4a5f734610)

Author SHA1 Message Date
Damien George 53519e322a py/builtinimport: Change relative import's ValueError to ImportError. 3 years ago
Damien George 0c0cef9870 tests: Move .mpy import tests from import/ to micropython/ dir. 4 years ago
David Lechner 3dc324d3f1 tests: Format all Python code with black, except tests in basics subdir. 5 years ago
Damien George 624f4ca39b tests: Add .exp files for basics/parser and import/import_override. 5 years ago
Damien George 111d1ffb64 tests/import: Add test for importing viper code with additional flags. 5 years ago
Léa Saviot a7bc4d1a14 py/builtinimport: Raise exception on empty module name. 5 years ago
Damien George 23f0691fdd py/persistentcode: Make .mpy more compact with qstr directly in prelude. 5 years ago
Petr Viktorin 25a9bccdee py/compile: Disallow 'import *' outside module level. 5 years ago
Damien George c8c0fd4ca3 py: Rework and compress second part of bytecode prelude. 5 years ago
Damien George b5ebfadbd6 py: Compress first part of bytecode prelude. 5 years ago
Damien George 5716c5cf65 py/persistentcode: Bump .mpy version to 5. 5 years ago
Damien George 67fdfebe64 tests: Update tests for changes to opcode ordering. 5 years ago
Damien George 48f43b77aa tests: Add tests for overriding builtins.__import__. 5 years ago
Damien George 1e23a29c8a tests/import: Add test for importing x64 native code. 6 years ago
Damien George 5996eeb48f py/persistentcode: Add a qstr window to save mpy files more efficiently. 6 years ago
Paul Sokolovsky d94aa577a6 tests/import_long_dyn: Test for "import *" of a long dynamic name. 6 years ago
Damien George 27ca9ab8b2 tests/import: Add .exp file for module_getattr.py to not require Py 3.7. 6 years ago
Paul m. p. P 454cca6016 py/objmodule: Implement PEP 562's __getattr__ for modules. 6 years ago
Damien George 6d8816fe84 tests/import: Add test for importing invalid .mpy file. 6 years ago
Damien George 409fc8f9c1 tests/import: Update comment now that uPy raises correct exception. 7 years ago
Damien George 3a9445c6b3 tests/import: Add a test for the builtin __import__ function. 8 years ago
Damien George 63e291de70 py/builtinimport: Raise ValueError for bad relative import, per CPython. 8 years ago
Rami Ali 50e14ca619 tests/import: Improve builtinimport.c test coverage. 8 years ago
Damien George 67f3edc10a tests/import: Add a test which uses ... in from-import statement. 8 years ago
Damien George 5e22afce41 tests: Improve test coverage of py/compile.c. 8 years ago
Damien George 3c582bc7cb tests/import: Add test for compiling "import a.b as c". 8 years ago
Paul Sokolovsky 9896314f5b tests: Add test for relative import without package context. 10 years ago
Paul Sokolovsky ee831cafa9 tests: Add another testcase for relative imports. 10 years ago
Paul Sokolovsky d0f5e61ab5 py: Implement __file__ attribute for modules. 10 years ago
Damien George 539681fffd tests: Rename test scripts, changing - to _ for consistency. 10 years ago
Damien George 559d8239ca tests: Move gen_context to import tests, because it relies on import. 11 years ago
Damien George 5cd0b2227f tests: Split out those tests requiring float and import. 11 years ago