Skip to content

Commit 92296a1

Browse files
sobolevnvstinner
andauthored
Apply batched suggestions from code review
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 0c260e1 commit 92296a1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Lib/test/test_capi/test_object.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,9 @@ def test_object_clear_managed_dict(self):
406406
@threading_helper.requires_working_threading()
407407
@support.nomemtest
408408
def test_object_clear_managed_dict_ft_memory_error(self):
409-
# PyObject_ClearManagedDict, gh-152254
409+
# gh-152254: Test PyObject_ClearManagedDict() error.
410410
# The setup must contain: object owned by another thread
411-
# and the attempt to clear the managed dict with no memory left
411+
# and the attempt to clear the managed dict with no memory left.
412412
clear_managed_dict = _testcapi.pyobject_clear_managed_dict
413413
ManagedDictType = _testcapi.ManagedDictType
414414

@@ -419,7 +419,7 @@ def test_object_clear_managed_dict_ft_memory_error(self):
419419
def worker():
420420
# This needs to be in a separate thread for the crash to happen:
421421
with support.catch_unraisable_exception() as ex:
422-
# `clear_managed_dict` used to crash:
422+
# `PyObject_ClearManagedDict()` used to crash:
423423
_testcapi.call_with_nomemory(0, 1, clear_managed_dict, obj)
424424
self.assertIsNotNone(ex.unraisable)
425425
self.assertIs(ex.unraisable.exc_type, MemoryError)

0 commit comments

Comments
 (0)