mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
...
This commit is contained in:
parent
966c58d808
commit
289ddab5f7
@ -14,4 +14,8 @@ import test2
|
||||
assert test2.a.g.get_value() == '123'
|
||||
|
||||
from test2.utils import get_value_2
|
||||
assert get_value_2() == '123'
|
||||
assert get_value_2() == '123'
|
||||
|
||||
from test3.a.b import value
|
||||
# should test3
|
||||
assert value == 1
|
@ -1,3 +1 @@
|
||||
ok = True
|
||||
|
||||
from ..b import D
|
@ -1,3 +1,5 @@
|
||||
ok = True
|
||||
|
||||
from ...utils import r
|
||||
|
||||
def get_value():
|
||||
|
@ -1,4 +1,4 @@
|
||||
value = '123'
|
||||
|
||||
from test2.a import g
|
||||
assert g.ok == True
|
||||
assert g.ok
|
||||
|
3
tests/test3/__init__.py
Normal file
3
tests/test3/__init__.py
Normal file
@ -0,0 +1,3 @@
|
||||
raise ValueError(
|
||||
"test3 should not be imported"
|
||||
)
|
3
tests/test3/a/__init__.py
Normal file
3
tests/test3/a/__init__.py
Normal file
@ -0,0 +1,3 @@
|
||||
raise ValueError(
|
||||
"test3.a should not be imported"
|
||||
)
|
1
tests/test3/a/b.py
Normal file
1
tests/test3/a/b.py
Normal file
@ -0,0 +1 @@
|
||||
value = 1
|
Loading…
x
Reference in New Issue
Block a user