Skip to content

Commit 6ac90be

Browse files
committed
gh-143378: clean up test comments
1 parent 7805fa1 commit 6ac90be

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Lib/test/test_io/test_memoryio.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,6 @@ def test_issue5449(self):
588588
self.assertRaises(TypeError, self.ioclass, buf, foo=None)
589589

590590
def test_write_concurrent_close(self):
591-
# Prevent crashes when memio.write() concurrently closes 'memio'.
592-
# See: https://github.com/python/cpython/issues/143378.
593591
class B:
594592
def __buffer__(self, flags):
595593
memio.close()
@@ -598,9 +596,11 @@ def __buffer__(self, flags):
598596
memio = self.ioclass()
599597
self.assertRaises(ValueError, memio.write, B())
600598

599+
# Prevent crashes when memio.write() or memio.writelines()
600+
# concurrently mutates (e.g., closes or exports) 'memio'.
601+
# See: https://github.com/python/cpython/issues/143378.
602+
601603
def test_writelines_concurrent_close(self):
602-
# Prevent crashes when memio.writelines() concurrently closes 'memio'.
603-
# See: https://github.com/python/cpython/issues/143378.
604604
class B:
605605
def __buffer__(self, flags):
606606
memio.close()
@@ -610,8 +610,6 @@ def __buffer__(self, flags):
610610
self.assertRaises(ValueError, memio.writelines, [B()])
611611

612612
def test_write_concurrent_export(self):
613-
# Prevent crashes when memio.write() concurrently exports 'memio'.
614-
# See: https://github.com/python/cpython/issues/143378.
615613
class B:
616614
buf = None
617615
def __buffer__(self, flags):
@@ -622,8 +620,6 @@ def __buffer__(self, flags):
622620
self.assertRaises(BufferError, memio.write, B())
623621

624622
def test_writelines_concurrent_export(self):
625-
# Prevent crashes when memio.writelines() concurrently exports 'memio'.
626-
# See: https://github.com/python/cpython/issues/143378.
627623
class B:
628624
buf = None
629625
def __buffer__(self, flags):

0 commit comments

Comments
 (0)