Skip to content

Commit

Permalink
[3.11] gh-115059: Remove debugging code in test_io (GH-115240) (GH-11…
Browse files Browse the repository at this point in the history
…5245)

(cherry picked from commit 597fad0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
miss-islington and serhiy-storchaka committed Feb 10, 2024
1 parent 089cae5 commit 562fe5f
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions Lib/test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -2437,36 +2437,6 @@ def test_interleaved_readline_write(self):
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

Expand Down

0 comments on commit 562fe5f

Please sign in to comment.