Skip to content

Commit a0d4ee8

Browse files
authored
Test with PYTHON_JULIACALL_HANDLE_SIGNALS=yes (#642)
* remove unused type * test more python versions * correct field names and types * use julia signal handling when testing python * revert set of tested python versions --------- Co-authored-by: Christopher Doris <github.com/cjdoris>
1 parent 4ac1b2b commit a0d4ee8

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
uv run pytest -s --nbval --cov=pysrc ./pytest/
9494
env:
9595
PYTHON_JULIACALL_THREADS: '2'
96+
PYTHON_JULIACALL_HANDLE_SIGNALS: 'yes'
9697

9798
- name: Upload coverage to Codecov
9899
uses: codecov/codecov-action@v5

src/C/consts.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,14 +316,12 @@ end
316316
vectorcall::Ptr{Cvoid} = C_NULL
317317

318318
# Python 3.12+ fields
319-
tp_watched::Cchar = 0
319+
watched::Cuchar = 0
320320

321321
# Python 3.13+ fields
322-
tp_versions_used::Cushort = 0
322+
versions_used::UInt16 = 0
323323
end
324324

325-
const PyTypePtr = Ptr{PyTypeObject}
326-
327325
@kwdef struct PySimpleObject{T}
328326
ob_base::PyObject = PyObject()
329327
value::T

0 commit comments

Comments
 (0)