diff --git a/main.c b/main.c index 4b50c1a..7c0ed4d 100644 --- a/main.c +++ b/main.c @@ -76,7 +76,7 @@ typedef struct _mpzobject { PyTypeObject MPZ_Type; -#if !defined(PYPY_VERSION) +#if !defined(PYPY_VERSION) && !Py_GIL_DISABLED # define CACHE_SIZE (99) #else # define CACHE_SIZE (0) diff --git a/pyproject.toml b/pyproject.toml index 10657bb..d71c81a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ version = {attr = "setuptools_scm.get_version"} "*" = ["*.h"] [project.optional-dependencies] -tests = ["pytest", "hypothesis<=6.123.2"] +tests = ["pytest", "hypothesis<=6.123.4"] docs = ["sphinx"] develop = ["python-gmp[tests,docs]", "pre-commit", "pyperf", "gmpy2>=2.2; platform_python_implementation!='PyPy'",