We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6b5163 commit 0d3fe57Copy full SHA for 0d3fe57
1 file changed
Lib/test/test_io/test_textio.py
@@ -797,18 +797,6 @@ def test_writelines_error(self):
797
self.assertRaises(TypeError, txt.writelines, None)
798
self.assertRaises(TypeError, txt.writelines, b'abc')
799
800
- def test_write_empty_stress(self):
801
- # gh-151814: repeatedly writing the empty string shouldn't accumulate
802
- # in the pending-write buffer.
803
- buf = self.BytesIO()
804
- txt = self.TextIOWrapper(buf, encoding="utf-8")
805
- for _ in range(1_000_000):
806
- txt.write('')
807
- self.assertEqual(buf.getvalue(), b'')
808
- txt.write('S')
809
- txt.flush()
810
- self.assertEqual(buf.getvalue(), b'S')
811
-
812
def test_issue1395_1(self):
813
txt = self.TextIOWrapper(self.BytesIO(self.testdata), encoding="ascii")
814
0 commit comments