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.
From now on, all new tests must use underscore.
Addresses issue #727 .
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.
Tests in basics (which should probably be renamed to core) should not
rely on float, or import any non-built-in files. This way these tests
can be run when those features are not available.
All test in basics now pass on the pyboard using stmhal port, except for
string-repr which has some issues with character hex printing.
11 years ago