File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,7 @@ public static void enterContext(String... newArgs) {
87
87
PythonTests .outArray .reset ();
88
88
PythonTests .errArray .reset ();
89
89
if (context != null ) {
90
- context .leave ();
91
- context .close ();
90
+ closeContext ();
92
91
}
93
92
context = Context .newBuilder ().engine (engine ).allowAllAccess (true ).arguments ("python" , newArgs ).build ();
94
93
context .initialize ("python" );
@@ -98,6 +97,7 @@ public static void enterContext(String... newArgs) {
98
97
public static void closeContext () {
99
98
context .leave ();
100
99
context .close ();
100
+ context = null ;
101
101
}
102
102
103
103
public static void assertBenchNoError (Path scriptName , String [] args ) {
You can’t perform that action at this time.
0 commit comments