Skip to content

Commit cf18df7

Browse files
committed
don't run test, this one will only work when run in a GraalVM
1 parent 4cb6c83 commit cf18df7

File tree

1 file changed

+0
-16
lines changed
  • graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/interop

1 file changed

+0
-16
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/interop/JavaInteropTest.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252

5353
import org.graalvm.polyglot.Context;
5454
import org.graalvm.polyglot.Context.Builder;
55-
import org.graalvm.polyglot.Engine;
5655
import org.graalvm.polyglot.Source;
5756
import org.graalvm.polyglot.Value;
5857
import org.junit.After;
@@ -435,19 +434,4 @@ public void accessJavaObjectGetters() throws IOException {
435434
"True <class 'bool'>\n" +
436435
"c <class 'str'>\n", out.toString("UTF-8"));
437436
}
438-
439-
@Test
440-
public void testSharedEngineNoAccess() {
441-
try (Engine engine = Engine.create()) {
442-
Source source = Source.create("python", "21 + 21");
443-
try (Context ctxt = Context.newBuilder().engine(engine).allowAllAccess(false).build()) {
444-
int v = ctxt.eval(source).asInt();
445-
assert v == 42;
446-
}
447-
try (Context ctxt = Context.newBuilder().engine(engine).allowAllAccess(false).build()) {
448-
int v = ctxt.eval(source).asInt();
449-
assert v == 42;
450-
}
451-
}
452-
}
453437
}

0 commit comments

Comments
 (0)