]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-115059: Remove debugging code in test_io (GH-115240)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 10 Feb 2024 13:17:33 +0000 (15:17 +0200)
committerGitHub <noreply@github.com>
Sat, 10 Feb 2024 13:17:33 +0000 (13:17 +0000)
Lib/test/test_io.py

index a24579dcc878cfbc4e38084325d9b725559922cc..cc387afa391909923cc835635564bd5a8aab363f 100644 (file)
@@ -2531,36 +2531,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