File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -153,23 +153,29 @@ test_gc_control(PyObject *self, PyObject *Py_UNUSED(ignored))
153
153
154
154
old_state = PyGC_Enable ();
155
155
msg = "Enable(1)" ;
156
- if (old_state != orig_enabled ) goto failed ;
156
+ if (old_state != orig_enabled ) {
157
+ goto failed ;
158
+ }
157
159
msg = "IsEnabled(1)" ;
158
160
if (!PyGC_IsEnabled ()) {
159
161
goto failed ;
160
162
}
161
163
162
164
old_state = PyGC_Disable ();
163
165
msg = "disable(2)" ;
164
- if (!old_state ) goto failed ;
166
+ if (!old_state ) {
167
+ goto failed ;
168
+ }
165
169
msg = "IsEnabled(2)" ;
166
170
if (PyGC_IsEnabled ()) {
167
171
goto failed ;
168
172
}
169
173
170
174
old_state = PyGC_Enable ();
171
175
msg = "enable(3)" ;
172
- if (old_state ) goto failed ;
176
+ if (old_state ) {
177
+ goto failed ;
178
+ }
173
179
msg = "IsEnabled(3)" ;
174
180
if (!PyGC_IsEnabled ()) {
175
181
goto failed ;
@@ -178,9 +184,13 @@ test_gc_control(PyObject *self, PyObject *Py_UNUSED(ignored))
178
184
if (!orig_enabled ) {
179
185
old_state = PyGC_Disable ();
180
186
msg = "disable(4)" ;
181
- if (old_state ) goto failed ;
187
+ if (old_state ) {
188
+ goto failed ;
189
+ }
182
190
msg = "IsEnabled(4)" ;
183
- if (PyGC_IsEnabled ()) goto failed ;
191
+ if (PyGC_IsEnabled ()) {
192
+ goto failed ;
193
+ }
184
194
}
185
195
186
196
Py_RETURN_NONE ;
You can’t perform that action at this time.
0 commit comments