Skip to content

Commit 02628ac

Browse files
committed
disable test on pypy
1 parent d99fe74 commit 02628ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_pythoncapi_compat_cext.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1953,6 +1953,7 @@ test_unicodewriter_format(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(args))
19531953
}
19541954
#endif
19551955

1956+
#ifndef PYPY_VERSION
19561957
static PyObject *
19571958
test_uniquely_referenced(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(args))
19581959
{
@@ -1973,7 +1974,7 @@ test_uniquely_referenced(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(args))
19731974

19741975
Py_RETURN_NONE;
19751976
}
1976-
1977+
#endif
19771978

19781979
static PyObject *
19791980
test_bytes(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
@@ -2330,7 +2331,9 @@ static struct PyMethodDef methods[] = {
23302331
{"test_config", test_config, METH_NOARGS, _Py_NULL},
23312332
#endif
23322333
{"test_sys", test_sys, METH_NOARGS, _Py_NULL},
2334+
#ifndef PYPY_VERSION
23332335
{"test_uniquely_referenced", test_uniquely_referenced, METH_NOARGS, _Py_NULL},
2336+
#endif
23342337
{_Py_NULL, _Py_NULL, 0, _Py_NULL}
23352338
};
23362339

0 commit comments

Comments
 (0)