Skip to content

Commit d61ce4c

Browse files
committed
added Py_INCREF(a) to test_abstract.py TestSequence/MappingCheck
1 parent 1adc7f2 commit d61ce4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_abstract.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ def test_sequence_check(self):
392392
TestSequenceCheck = CPyExtType("TestSequenceCheck",
393393
"""
394394
PyObject* test_sq_item(PyObject *a, Py_ssize_t i) {
395+
Py_INCREF(a);
395396
return a;
396397
}
397398
PyObject* callCheck(PyObject* a) {
@@ -424,6 +425,7 @@ def test_mapping_check(self):
424425
TestMappingCheck = CPyExtType("TestMappingCheck",
425426
"""
426427
PyObject* test_mp_subscript(PyObject* a, PyObject* b) {
428+
Py_INCREF(a);
427429
return a;
428430
}
429431
PyObject* callCheck(PyObject* a) {

0 commit comments

Comments
 (0)