diff --git a/tests/30_import.py b/tests/30_import.py index f6af527f..58690cf2 100644 --- a/tests/30_import.py +++ b/tests/30_import.py @@ -10,8 +10,9 @@ import test1 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 (A.__module__ == 'test2.a.g'), A.__module__ import test2 assert test2.a.g.get_value() == '123' diff --git a/tests/test2/a/g/__init__.py b/tests/test2/a/g/__init__.py index 1c8290b8..45fef23b 100644 --- a/tests/test2/a/g/__init__.py +++ b/tests/test2/a/g/__init__.py @@ -3,4 +3,7 @@ ok = True from ...utils import r def get_value(): - return r.value \ No newline at end of file + return r.value + +class A: + pass \ No newline at end of file