Skip to content

Commit 321f92e

Browse files
author
Christopher Rowley
committed
skip pycall tests on free-threaded python
1 parent 88b3902 commit 321f92e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/Compat.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ end
5050
end
5151

5252
@testitem "PyCall.jl" begin
53-
if (get(ENV, "CI", "") != "") && (ENV["JULIA_PYTHONCALL_EXE"] == "python")
53+
if (get(ENV, "CI", "") != "") && (ENV["JULIA_PYTHONCALL_EXE"] == "python") && !PythonCall.C.CTX.is_free_threaded
5454
# Only run this test when we can guarantee PyCall and PythonCall are using the
5555
# same Python. Currently this only runs in CI, and if PythonCall is using the
56-
# system Python installation.
56+
# system Python installation. Also PyCall is not compatible with free-threaded
57+
# python so we skip this too.
5758
using PyCall
5859
# Check they are indeed using the same Python.
5960
@test Base.get_extension(PythonCall, :PyCallExt).SAME[]

0 commit comments

Comments
 (0)