tests/cpydiff/core_import_path: Test showing difference in package.__path__.

This commit is contained in:
Paul Sokolovsky 2017-05-03 12:22:53 +03:00
parent ab4a8618cf
commit 3923f96dc6
1 changed files with 9 additions and 0 deletions

View File

@ -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__)