diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-05-03 12:22:53 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-05-03 12:22:53 +0300 |
commit | 3923f96dc65bd37d16acec74f77546f048f9fa50 (patch) | |
tree | d4cceb878a49643edbe0372efccc0449a8347f1c | |
parent | ab4a8618cffc02d0838bd64372b066c99c2d2d7e (diff) | |
download | micropython-3923f96dc65bd37d16acec74f77546f048f9fa50.tar.gz micropython-3923f96dc65bd37d16acec74f77546f048f9fa50.zip |
tests/cpydiff/core_import_path: Test showing difference in package.__path__.
-rw-r--r-- | tests/cpydiff/core_import_path.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/cpydiff/core_import_path.py b/tests/cpydiff/core_import_path.py new file mode 100644 index 0000000000..04fc4bd5bb --- /dev/null +++ b/tests/cpydiff/core_import_path.py @@ -0,0 +1,9 @@ +""" +categories: Core,import +description: __path__ attribute of a package has a different type (single string instead of list of strings) in MicroPython +cause: MicroPython does't support namespace packages split across filesystem. Beyond that, MicroPython's import system is highly optimized for minimal memory usage. +workaround: Details of import handling is inherently implementation dependent. Don't rely on such details in portable applications. +""" +import modules + +print(modules.__path__) |