mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
tests: Add another testcase for relative imports.
This commit is contained in:
2
tests/import/import_pkg6.py
Normal file
2
tests/import/import_pkg6.py
Normal file
@@ -0,0 +1,2 @@
|
||||
# This tests relative imports as used in pkg6
|
||||
import pkg6
|
||||
2
tests/import/pkg6/__init__.py
Normal file
2
tests/import/pkg6/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from .x import *
|
||||
print('init')
|
||||
2
tests/import/pkg6/x/__init__.py
Normal file
2
tests/import/pkg6/x/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from .y import *
|
||||
print('x')
|
||||
1
tests/import/pkg6/x/y.py
Normal file
1
tests/import/pkg6/x/y.py
Normal file
@@ -0,0 +1 @@
|
||||
print('y')
|
||||
Reference in New Issue
Block a user