Skip to content

Commit 90ba4df

Browse files
committed
Trim test comments
1 parent e04d3b6 commit 90ba4df

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Lib/test/test_marshal.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,12 +458,10 @@ def test_loads_dict_no_memory(self):
458458
# allocation that registers it in the reference list failed.
459459
data = b'\xfbi\x01\x00\x00\x00i\x02\x00\x00\x000' # {1: 2}, FLAG_REF
460460
self.assertEqual(marshal.loads(data), {1: 2})
461-
# The reference-list allocation fails early; 16 is ample headroom.
462461
for index in range(16):
463462
with self.subTest(index=index):
464-
# Capture the outcome before touching memory again: any
465-
# allocation made by an assertion would also fail while the
466-
# nomemory hook is active.
463+
# Capture the outcome first: an assertion would itself
464+
# allocate and fail while the nomemory hook is active.
467465
result = error = None
468466
_testcapi.set_nomemory(index, index + 1)
469467
try:

0 commit comments

Comments
 (0)