Skip to content

Commit 5ca2534

Browse files
committed
add test for recursive import from
1 parent f26e25a commit 5ca2534

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import context
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import reduction
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import context

graalpython/com.oracle.graal.python.test/src/tests/test_imports.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,8 @@ def func(x):
121121
old_name = code.co_filename
122122
_imp._fix_co_filename(code, old_name + '_more_path')
123123
assert code.co_filename == old_name + '_more_path'
124+
125+
126+
def test_recursive_import_from():
127+
import package.recpkg
128+
assert package.recpkg.context is package.recpkg.reduction.context

0 commit comments

Comments
 (0)