This commit is contained in:
blueloveTH 2024-08-13 10:41:12 +08:00
parent 26a12bb640
commit 11f709b768
2 changed files with 6 additions and 2 deletions

View File

@ -10,8 +10,9 @@ import test1
assert test1.add(1, 2) == 13 assert test1.add(1, 2) == 13
from test2.a.g import get_value from test2.a.g import get_value, A
assert get_value() == '123' assert get_value() == '123'
assert (A.__module__ == 'test2.a.g'), A.__module__
import test2 import test2
assert test2.a.g.get_value() == '123' assert test2.a.g.get_value() == '123'

View File

@ -4,3 +4,6 @@ from ...utils import r
def get_value(): def get_value():
return r.value return r.value
class A:
pass