fix heisenbug in __dealloc__ from issue
@@ -4021,7 +4021,9 @@ cdef class _CatBoost:
def __dealloc__(self):
del self.__model
- for i in range(self.__test_evals.size()):
+
+ cdef int i
+ for i in xrange(self.__test_evals.size()):
del self.__test_evals[i]
def __eq__(self, _CatBoost other):
