Skip to content

Commit 1a667a4

Browse files
Update Lib/test/test_io/test_memoryio.py
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 2c3035c commit 1a667a4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Lib/test/test_io/test_memoryio.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -872,10 +872,9 @@ def __buffer__(self, flags):
872872
self.assertRaises(BufferError, memio.write, TBuf(memio))
873873

874874
@support.cpython_only
875-
def test_uaf_buffer_writelines(self):
876-
# Prevent use-after-free when writelines() triggers a re-entrant call that
877-
# closes or mutates the BytesIO object.
878-
# See: https://github.com/python/cpython/issues/143378
875+
def test_writelines_concurrent_mutation(self):
876+
# Prevent crashes when buf.writelines() concurrently mutates 'buf'.
877+
# See: https://github.com/python/cpython/issues/143378.
879878
class TBuf:
880879
def __init__(self, bio):
881880
self.bio = bio

0 commit comments

Comments
 (0)