File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed
graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/interop Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -340,15 +340,15 @@ public Object execute(Value... arguments) {
340
340
public void runAForeignExecutable () throws IOException {
341
341
Source suitePy = Source .newBuilder ("python" ,
342
342
"""
343
- def foo(obj):
344
- try:
345
- obj()
346
- except TypeError as e:
347
- pass
348
- else:
349
- assert False
350
- foo
351
- """ ,
343
+ def foo(obj):
344
+ try:
345
+ obj()
346
+ except TypeError as e:
347
+ pass
348
+ else:
349
+ assert False
350
+ foo
351
+ """ ,
352
352
"suite.py" ).build ();
353
353
Value foo = context .eval (suitePy );
354
354
foo .execute (new AForeignExecutable ());
@@ -359,15 +359,15 @@ def foo(obj):
359
359
public void invokeAForeignMember () throws IOException {
360
360
Source suitePy = Source .newBuilder ("python" ,
361
361
"""
362
- def foo(obj):
363
- try:
364
- obj.fun()
365
- except TypeError as e:
366
- pass
367
- else:
368
- assert False
369
- foo
370
- """ ,
362
+ def foo(obj):
363
+ try:
364
+ obj.fun()
365
+ except TypeError as e:
366
+ pass
367
+ else:
368
+ assert False
369
+ foo
370
+ """ ,
371
371
"suite.py" ).build ();
372
372
Map <String , Object > m = new HashMap <>();
373
373
m .put ("fun" , new AForeignExecutable ());
You can’t perform that action at this time.
0 commit comments