Commit d7853f86 authored by Kevin Modzelewski's avatar Kevin Modzelewski

A couple small fixes

parent 53c223d3
...@@ -622,7 +622,7 @@ extern "C" Box* listSetitem(BoxedList* self, Box* slice, Box* v) { ...@@ -622,7 +622,7 @@ extern "C" Box* listSetitem(BoxedList* self, Box* slice, Box* v) {
Py_ssize_t i = PyNumber_AsSsize_t(slice, PyExc_IndexError); Py_ssize_t i = PyNumber_AsSsize_t(slice, PyExc_IndexError);
if (i == -1 && PyErr_Occurred()) if (i == -1 && PyErr_Occurred())
throwCAPIException(); throwCAPIException();
listSetitemUnboxed(self, i, v); _listSetitem(self, i, v);
Py_RETURN_NONE; Py_RETURN_NONE;
} else if (slice->cls == slice_cls) { } else if (slice->cls == slice_cls) {
return listSetitemSlice(self, static_cast<BoxedSlice*>(slice), v); return listSetitemSlice(self, static_cast<BoxedSlice*>(slice), v);
......
# expected: reffail # skip-if: True
# - This test is now meaningless now that we use refcounting, since the behavior isn't desired anymore
import gc import gc
finalized_at_least_once = False finalized_at_least_once = False
......
# expected: reffail
from testing_helpers import test_gc from testing_helpers import test_gc
# __del__ does not get called because it doesn't fallback to getattr # __del__ does not get called because it doesn't fallback to getattr
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment