Skip to content

Commit 63bade1

Browse files
committed
Tests use full Context
Jython will require additional services to manage its cleanup, so we do not want to start a minimal context.
1 parent 9eb25b4 commit 63bade1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/org/scijava/plugins/scripting/jython/JythonTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class JythonTest {
5959
public void testBasic() throws InterruptedException, ExecutionException,
6060
IOException, ScriptException
6161
{
62-
final Context context = new Context(ScriptService.class);
62+
final Context context = new Context();
6363
final ScriptService scriptService = context.getService(ScriptService.class);
6464
final String script = "1 + 2";
6565
final ScriptModule m = scriptService.run("add.py", script, true).get();
@@ -70,7 +70,7 @@ public void testBasic() throws InterruptedException, ExecutionException,
7070

7171
@Test
7272
public void testLocals() throws ScriptException {
73-
final Context context = new Context(ScriptService.class);
73+
final Context context = new Context();
7474
final ScriptService scriptService = context.getService(ScriptService.class);
7575

7676
final ScriptLanguage language = scriptService.getLanguageByExtension("py");
@@ -89,7 +89,7 @@ public void testLocals() throws ScriptException {
8989
public void testParameters() throws InterruptedException, ExecutionException,
9090
IOException, ScriptException
9191
{
92-
final Context context = new Context(ScriptService.class);
92+
final Context context = new Context();
9393
final ScriptService scriptService = context.getService(ScriptService.class);
9494

9595
final String script = "" + //
@@ -128,7 +128,7 @@ public void testParameters() throws InterruptedException, ExecutionException,
128128
public void testLongType() throws InterruptedException, ExecutionException,
129129
IOException, ScriptException
130130
{
131-
final Context context = new Context(ScriptService.class);
131+
final Context context = new Context();
132132
final ScriptService scriptService = context.getService(ScriptService.class);
133133

134134
final String script = "" + //

0 commit comments

Comments
 (0)