File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed
graalpython/com.oracle.graal.python.test/src/tests Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change 42
42
43
43
sys .path .append (sys ._getframe ().f_code .co_filename .rpartition ("/" )[0 ])
44
44
45
+
45
46
def test_relative_import ():
46
- pass
47
+ # this is to prevent ides from optimising out the unused import
48
+ try :
49
+ import package
50
+ except Exception as e :
51
+ raise e
47
52
48
53
49
54
def test_dotted_import ():
50
- pass
55
+ # this is to prevent ides from optimising out the unused import
56
+ try :
57
+ import package .moduleY
58
+ except Exception as e :
59
+ raise e
51
60
52
61
53
62
def test_recursive_import ():
54
- pass
63
+ # this is to prevent ides from optimising out the unused import
64
+ try :
65
+ import package .moduleRecursive
66
+ except Exception as e :
67
+ raise e
55
68
56
69
57
70
def test_recursive_import2 ():
58
- pass
71
+ # this is to prevent ides from optimising out the unused import
72
+ try :
73
+ import package .moduleRecursive2
74
+ except Exception as e :
75
+ raise e
59
76
60
77
61
78
def test_import_star_has_to_be_module ():
You can’t perform that action at this time.
0 commit comments