@@ -91,7 +91,7 @@ def test_julia_gc():
9191 # Debugging note: if you get segfaults, then run the tests with
9292 # `PYTHON_JULIACALL_HANDLE_SIGNALS=yes python3 -X faulthandler -m pytest -p no:faulthandler -s --nbval --cov=pysrc ./pytest/`
9393 # in order to recover a bit more information from the segfault.
94- jl .seval (
94+ jl .jl_eval (
9595 """
9696 using PythonCall, Test
9797 let
@@ -106,10 +106,8 @@ def test_julia_gc():
106106 )
107107
108108
109- @pytest .mark .parametrize (
110- ["yld" , "raw" ], [(yld , raw ) for yld in [False , True ] for raw in [False , True ]]
111- )
112- def test_call_nogil (yld , raw ):
109+ @pytest .mark .parametrize ("yld" , [True , False ])
110+ def test_call_nogil (yld ):
113111 """Tests that we can execute Julia code in parallel by releasing the GIL."""
114112 from concurrent .futures import ThreadPoolExecutor , wait
115113 from time import time
@@ -122,10 +120,7 @@ def test_call_nogil(yld, raw):
122120 else :
123121 # use Libc.systemsleep which does not yield
124122 jsleep = jl .Libc .systemsleep
125- if raw :
126- # test RawValue instead of AnyValue
127- jsleep = jsleep ._jl_raw ()
128- jsleep = jsleep ._jl_call_nogil
123+ jsleep = jsleep .jl_call_nogil
129124 jyield = getattr (jl , "yield" )
130125 # precompile
131126 jsleep (0.01 )
0 commit comments