@@ -119,7 +119,7 @@ def do_run_python(args, extra_vm_args=None, env=None, jdk=None, **kwargs):
119
119
120
120
dists = ['GRAALPYTHON' , 'TRUFFLE_NFI' , 'SULONG' ]
121
121
env ["PYTHONUSERBASE" ] = mx_subst .path_substitutions .substitute ("<path:PYTHON_USERBASE>" )
122
-
122
+
123
123
vm_args , graalpython_args = mx .extract_VM_args (args , useDoubleDash = True , defaultAllVMArgs = False )
124
124
graalpython_args , additional_dists = _extract_graalpython_internal_options (graalpython_args )
125
125
dists += additional_dists
@@ -323,7 +323,7 @@ def _graalpytest_root():
323
323
324
324
def run_python_unittests (python_binary , args = None , paths = None , aot_compatible = True , exclude = None ):
325
325
args = args or []
326
- args = ["--experimental-options=true" ,
326
+ args = ["--experimental-options=true" ,
327
327
"--python.CatchAllExceptions=true" ,
328
328
mx_subst .path_substitutions .substitute ("--python.CAPI=<path:com.oracle.graal.python.cext>" ),
329
329
] + args
@@ -504,7 +504,7 @@ def run_shared_lib_test(args=None):
504
504
fd = name = progname = None
505
505
try :
506
506
fd , name = tempfile .mkstemp (suffix = '.c' )
507
- os .write (fd , """
507
+ os .write (fd , b """
508
508
#include "stdio.h"
509
509
#include "polyglot_api.h"
510
510
@@ -611,7 +611,7 @@ def run_shared_lib_test(args=None):
611
611
}
612
612
return test_basic_python_function();
613
613
}
614
- """ % ("1" if "sandboxed" in args else "0" ))
614
+ """ % (b "1" if "sandboxed" in args else b "0" ))
615
615
os .close (fd )
616
616
progname = os .path .join (SUITE .dir , "graalpython-embedded-tool" )
617
617
mx .log ("" .join (["Running " , "'clang" , "-I%s" % svm_lib_path , "-L%s" % svm_lib_path , name , "-o" , progname , "-lpolyglot" ]))
0 commit comments