File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1036,6 +1036,7 @@ def foo():
1036
1036
o = o .__dir__
1037
1037
1038
1038
foo ()
1039
+ support .gc_collect ()
1039
1040
1040
1041
@cpython_only
1041
1042
def test_recursion_normalizing_exception (self ):
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ static void
161
161
meth_dealloc (PyCFunctionObject * m )
162
162
{
163
163
PyObject_GC_UnTrack (m );
164
- Py_TRASHCAN_SAFE_BEGIN ( m );
164
+ Py_TRASHCAN_BEGIN ( m , meth_dealloc );
165
165
if (m -> m_weakreflist != NULL ) {
166
166
PyObject_ClearWeakRefs ((PyObject * ) m );
167
167
}
@@ -171,7 +171,7 @@ meth_dealloc(PyCFunctionObject *m)
171
171
Py_XDECREF (m -> m_self );
172
172
Py_XDECREF (m -> m_module );
173
173
PyObject_GC_Del (m );
174
- Py_TRASHCAN_SAFE_END ( m ) ;
174
+ Py_TRASHCAN_END ;
175
175
}
176
176
177
177
static PyObject *
You can’t perform that action at this time.
0 commit comments