Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Modules/_testcapimodule.c
  • Loading branch information
pablogsal authored Apr 28, 2021
commit 4e11560c8faa84e36529410fed1d645c2db064e2
4 changes: 3 additions & 1 deletion Modules/_testcapimodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ test_gc_control(PyObject *self, PyObject *Py_UNUSED(ignored))
msg = "disable(2)";
if (!old_state) goto failed;
msg = "IsEnabled(2)";
if (PyGC_IsEnabled()) goto failed;
if (PyGC_IsEnabled()) {
goto failed;
}

old_state = PyGC_Enable();
msg = "enable(3)";
Expand Down