8000 bpo-28254: Formatting. · python/cpython@e5f0077 · GitHub
[go: up one dir, main page]

Skip to content

Commit e5f0077

Browse files
committed
bpo-28254: Formatting.
1 parent 4e11560 commit e5f0077

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

Modules/_testcapimodule.c

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,23 +153,29 @@ test_gc_control(PyObject *self, PyObject *Py_UNUSED(ignored))
153153

154154
old_state = PyGC_Enable();
155155
msg = "Enable(1)";
156-
if (old_state != orig_enabled) goto failed;
156+
if (old_state != orig_enabled) {
157+
goto failed;
158+
}
157159
msg = "IsEnabled(1)";
158160
if (!PyGC_IsEnabled()) {
159161
goto failed;
160162
}
161163

162164
old_state = PyGC_Disable();
163165
msg = "disable(2)";
164-
if (!old_state) goto failed;
166+
if (!old_state) {
167+
goto failed;
168+
}
165169
msg = "IsEnabled(2)";
166170
if (PyGC_IsEnabled()) {
167171
goto failed;
168172
}
169173

170174
old_state = PyGC_Enable();
171175
msg = "enable(3)";
172-
if (old_state) goto failed;
176+
if (old_state) {
177+
goto failed;
178+
}
173179
msg = "IsEnabled(3)";
174180
if (!PyGC_IsEnabled()) {
175181
goto failed;
@@ -178,9 +184,13 @@ test_gc_control(PyObject *self, PyObject *Py_UNUSED(ignored))
178184
if (!orig_enabled) {
179185
old_state = PyGC_Disable();
180186
msg = "disable(4)";
181-
if (old_state) goto failed;
187+
if (old_state) {
188+
goto failed;
189+
}
182190
msg = "IsEnabled(4)";
183-
if (PyGC_IsEnabled()) goto failed;
191+
if (PyGC_IsEnabled()) {
192+
goto failed;
193+
}
184194
}
185195

186196
Py_RETURN_NONE;

0 commit comments

Comments
 (0)
0