summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/import-pkg2.py
Commit message (Collapse)AuthorAge
* tests: Split out those tests requiring float and import.Damien George2014-04-17
| | | | | | | | | 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.
* import: Implement "from pkg.mod import sym" syntax properly.Paul Sokolovsky2014-02-20
http://docs.python.org/3.3/library/functions.html#__import__ : "When the name variable is of the form package.module, normally, the top-level package (the name up till the first dot) is returned, not the module named by name. However, when a non-empty fromlist argument is given, the module named by name is returned."