Skip to content

Commit 5997e90

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 35f9856 commit 5997e90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/test_io/test_memoryio.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -857,10 +857,10 @@ def test_cow_mutable(self):
857857
self.assertEqual(sys.getrefcount(ba), old_rc)
858858

859859
@support.cpython_only
860-
def test_uaf_buffer_write(self):
861-
# Prevent use-after-free when write() triggers a re-entrant call that
862-
# closes or mutates the BytesIO object.
863-
# See: https://github.com/python/cpython/issues/143378
860+
def test_write_concurrent_mutation(self):
861+
# Prevent crashes when buf.write() concurrently mutates 'buf'.
862+
# See: https://github.com/python/cpython/issues/143378.
863+
864864
class TBuf:
865865
def __init__(self, bio):
866866
self.bio = bio

0 commit comments

Comments
 (0)