Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4238b88

Browse files
committed
disable test on pypy
1 parent 521db10 commit 4238b88

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
@@ -1972,6 +1972,7 @@ test_unicodewriter_format(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(args))
19721972
}
19731973
#endif
19741974

1975+
#ifndef PYPY_VERSION
19751976
static PyObject *
19761977
test_uniquely_referenced(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(args))
19771978
{
@@ -1992,7 +1993,7 @@ test_uniquely_referenced(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(args))
19921993

19931994
Py_RETURN_NONE;
19941995
}
1995-
1996+
#endif
19961997

19971998
static PyObject *
19981999
test_bytes(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
@@ -2349,7 +2350,9 @@ static struct PyMethodDef methods[] = {
23492350
{"test_config", test_config, METH_NOARGS, _Py_NULL},
23502351
#endif
23512352
{"test_sys", test_sys, METH_NOARGS, _Py_NULL},
2353+
#ifndef PYPY_VERSION
23522354
{"test_uniquely_referenced", test_uniquely_referenced, METH_NOARGS, _Py_NULL},
2355+
#endif
23532356
{_Py_NULL, _Py_NULL, 0, _Py_NULL}
23542357
};
23552358

0 commit comments

Comments
 (0)