File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,18 @@ def pytest_sessionstart(session):
2626    if  not  session .config .getoption ("julia" ):
2727        return 
2828
29-     from  .core  import  Julia 
29+     from  .core  import  enable_debug , Julia , LibJulia , JuliaInfo 
30+ 
31+     enable_debug ()
32+     info  =  JuliaInfo .load (julia = session .config .getoption ("julia_runtime" ))
33+     api  =  LibJulia .from_juliainfo (info )
34+     if  info .is_compatible_python () or  info .version_info  <  (0 , 7 ):
35+         api .init_julia ()
36+     else :
37+         api .init_julia (["--compiled-modules=no" ])
3038
3139    global  JULIA 
32-     JULIA  =  Julia (runtime = session . config . getoption ( "julia_runtime" ),  debug = True )
40+     JULIA  =  Julia ()
3341
3442# Initialize Julia runtime as soon as possible (or more precisely 
3543# before importing any additional Python modules) to avoid, e.g., 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments