Skip to content

Commit

Permalink
pythongh-115059: Remove debugging code in test_io (pythonGH-115240)
Browse files Browse the repository at this point in the history
(cherry picked from commit 597fad0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
serhiy-storchaka authored and miss-islington committed Feb 10, 2024
1 parent 089cae5 commit f8db194
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 f8db194

Please sign in to comment.