Skip to content

Commit 870c79b

Browse files
committed
use only built-in classes
1 parent bd752ba commit 870c79b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,12 @@ def test_java_imports():
340340

341341
assert java.util.ArrayList == ArrayList
342342

343+
import sun
344+
assert type(sun.misc) is type(java)
345+
343346
import sun.misc.Signal
344347
assert sun.misc.Signal is not None
345348

346-
import org
347-
assert type(org.antlr) is type(java)
348349

349350
def test_foreign_object_does_not_leak_Javas_toString():
350351
try:

0 commit comments

Comments
 (0)