Skip to content

Commit

Permalink
Update test_awaitable.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroIntensity authored Apr 25, 2024
1 parent 01a8eac commit 9da28a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_awaitable.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
import pytest
import asyncio

tstate_init = pythonapi.PyGILState_Ensure
tstate_init.restype = ctypes.c_long
tstate_init.argtypes = ()

tstate_release = pythonapi.PyGILState_Release
tstate_release.argtypes = ctypes.c_long,

get_pointer = pythonapi.PyCapsule_GetPointer
get_pointer.argtypes = (ctypes.py_object, ctypes.c_void_p)
get_pointer.restype = ctypes.c_void_p
Expand Down

0 comments on commit 9da28a8

Please sign in to comment.