Skip to content

Commit 6b7ba73

Browse files
committed
Test: Added tests for unused imports
1 parent fc999f3 commit 6b7ba73

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

integration_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ RUN(NAME test_import_04 LABELS cpython llvm llvm_jit c)
606606
RUN(NAME test_import_05 LABELS cpython llvm llvm_jit c wasm wasm_x86 wasm_x64)
607607
RUN(NAME test_import_06 LABELS cpython llvm llvm_jit)
608608
RUN(NAME test_import_07 LABELS cpython llvm llvm_jit c)
609+
RUN(NAME test_import_08 LABELS cpython llvm)
609610
RUN(NAME test_math LABELS cpython llvm llvm_jit NOFAST)
610611
RUN(NAME test_membership_01 LABELS cpython llvm)
611612
RUN(NAME test_numpy_01 LABELS cpython llvm llvm_jit c)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import string
2+
3+
import test_import_08_module
4+
5+
# Supporting unused imports that "have expr own variables"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from lpython import i32
2+
3+
a: i32 = 10
4+
b: i32 = a + 10
5+
6+
print("Inside import")

0 commit comments

Comments
 (0)