]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-115059: Remove debugging code in test_io (GH-115240) (GH-115244)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 10 Feb 2024 14:04:49 +0000 (15:04 +0100)
committerGitHub <noreply@github.com>
Sat, 10 Feb 2024 14:04:49 +0000 (16:04 +0200)
(cherry picked from commit 597fad07f7bf709ac7084ac20aa3647995759b01)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_io.py

index f0822df647d27c4d5d017a1d373e759ddf76331e..49339f2910db2d259e7505b1b1ff256f941c9a24 100644 (file)
@@ -2540,36 +2540,6 @@ class BufferedRandomTest(BufferedReaderTest, BufferedWriterTest):
                 f.flush()
                 self.assertEqual(raw.getvalue(), b'1b\n2def\n3\n')
 
-    def test_xxx(self):
-        with self.BytesIO(b'abcdefgh') as raw:
-            with self.tp(raw) as f:
-                f.write(b'123')
-                self.assertEqual(f.read(), b'defgh')
-                f.write(b'456')
-                f.flush()
-                self.assertEqual(raw.getvalue(), b'123defgh456')
-        with self.BytesIO(b'abcdefgh') as raw:
-            with self.tp(raw) as f:
-                f.write(b'123')
-                self.assertEqual(f.read(3), b'def')
-                f.write(b'456')
-                f.flush()
-                self.assertEqual(raw.getvalue(), b'123def456')
-        with self.BytesIO(b'abcdefgh') as raw:
-            with self.tp(raw) as f:
-                f.write(b'123')
-                self.assertEqual(f.read1(), b'defgh')
-                f.write(b'456')
-                f.flush()
-                self.assertEqual(raw.getvalue(), b'123defgh456')
-        with self.BytesIO(b'abcdefgh') as raw:
-            with self.tp(raw) as f:
-                f.write(b'123')
-                self.assertEqual(f.read1(3), b'def')
-                f.write(b'456')
-                f.flush()
-                self.assertEqual(raw.getvalue(), b'123def456')
-
     # You can't construct a BufferedRandom over a non-seekable stream.
     test_unseekable = None