Skip to content

Commit 2dcf975

Browse files
committed
Some touchups.
1 parent 705d5cb commit 2dcf975

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Modules/_testcapimodule.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2566,17 +2566,17 @@ static void
25662566
test_interp_locks_common(void)
25672567
{
25682568
PyInterpreterState *interp = PyInterpreterState_Get();
2569-
PyInterpreterLock ref = PyInterpreterLock_FromCurrent();
2570-
assert(ref != 0);
2571-
assert(PyInterpreterLock_GetInterpreter(ref) == interp);
2569+
PyInterpreterLock lock = PyInterpreterLock_FromCurrent();
2570+
assert(lock != 0);
2571+
assert(PyInterpreterLock_GetInterpreter(lock) == interp);
25722572

2573-
PyInterpreterLock ref_2 = PyInterpreterLock_Copy(ref);
2574-
assert(ref_2 != 0);
2575-
assert(PyInterpreterLock_GetInterpreter(ref_2) == interp);
2573+
PyInterpreterLock lock_2 = PyInterpreterLock_Copy(lock);
2574+
assert(lock_2 != 0);
2575+
assert(PyInterpreterLock_GetInterpreter(lock_2) == interp);
25762576

25772577
// We can close the references in any order
2578-
PyInterpreterLock_Release(ref);
2579-
PyInterpreterLock_Release(ref_2);
2578+
PyInterpreterLock_Release(lock_2);
2579+
PyInterpreterLock_Release(lock);
25802580
}
25812581

25822582
static PyObject *

Modules/_testinternalcapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2577,8 +2577,8 @@ static PyMethodDef module_functions[] = {
25772577
#ifdef __EMSCRIPTEN__
25782578
{"emscripten_set_up_async_input_device", emscripten_set_up_async_input_device, METH_NOARGS},
25792579
#endif
2580-
{"set_vectorcall_nop", set_vectorcall_nop, METH_O},
25812580
{"simple_pending_call", simple_pending_call, METH_O},
2581+
{"set_vectorcall_nop", set_vectorcall_nop, METH_O},
25822582
{"test_interp_lock_countdown", test_interp_lock_countdown, METH_NOARGS},
25832583
{"test_interp_view_countdown", test_interp_view_countdown, METH_NOARGS},
25842584
{NULL, NULL} /* sentinel */

0 commit comments

Comments
 (0)