Skip to content

Commit 40db285

Browse files
committed
Fix test_config on Python 3.8
1 parent 2a89f9f commit 40db285

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/test_pythoncapi_compat_cext.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2691,7 +2691,8 @@ static struct PyMethodDef methods[] = {
26912691
{"test_long_stdint", test_long_stdint, METH_NOARGS, _Py_NULL},
26922692
{"test_structmember", test_structmember, METH_NOARGS, _Py_NULL},
26932693
{"test_file", test_file, METH_NOARGS, _Py_NULL},
2694-
#if 0x03090000 <= PY_VERSION_HEX && !defined(PYPY_VERSION) && !defined(Py_LIMITED_API)
2694+
#if (0x03080000 <= PY_VERSION_HEX \
2695+
&& !defined(PYPY_VERSION) && !defined(Py_LIMITED_API))
26952696
{"test_config", test_config, METH_NOARGS, _Py_NULL},
26962697
#endif
26972698
{"test_sys", test_sys, METH_NOARGS, _Py_NULL},

0 commit comments

Comments
 (0)