8000 [3.12] gh-115059: Remove debugging code in test_io (GH-115240) (GH-11… · python/cpython@a5f49ce · GitHub
[go: up one dir, main page]

Skip to content

Commit a5f49ce

Browse files
[3.12] gh-115059: Remove debugging code in test_io (GH-115240) (GH-115244)
(cherry picked from commit 597fad0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 7cc2058 commit a5f49ce

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

Lib/test/test_io.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2540,36 +2540,6 @@ def test_interleaved_readline_write(self):
25402540
f.flush()
25412541
self.assertEqual(raw.getvalue(), b'1b\n2def\n3\n')
25422542

2543-
def test_xxx(self):
2544-
with self.BytesIO(b'abcdefgh') as raw:
2545-
with self.tp(raw) as f:
2546-
f.write(b'123')
2547-
self.assertEqual(f.read(), b'defgh')
2548-
f.write(b'456')
2549-
f.flush()
2550-
self.assertEqual(raw.getvalue(), b'123defgh456')
2551-
with self.BytesIO(b'abcdefgh') as raw:
2552-
with self.tp(raw) as f:
2553-
f.write(b'123')
2554-
self.assertEqual(f.read(3), b'def')
2555-
f.write(b'456')
2556-
f.flush()
2557-
self.assertEqual(raw.getvalue(), b'123def456')
2558-
with self.BytesIO(b'abcdefgh') as raw:
2559-
with self.tp(raw) as f:
2560-
f.write(b'123')
2561-
self.assertEqual(f.read1(), b'defgh')
2562-
f.write(b'456')
2563-
f.flush()
2564-
self.assertEqual(raw.getvalue(), b'123defgh456')
2565-
with self.BytesIO(b'abcdefgh') as raw:
2566-
with self.tp(raw) as f:
2567-
f.write(b'123')
2568-
self.assertEqual(f.read1(3), b'def')
2569-
f.write(b'456')
2570-
f.flush()
2571-
self.assertEqual(raw.getvalue(), b'123def456')
2572-
25732543
# You can't construct a BufferedRandom over a non-seekable stream.
25742544
test_unseekable = None
25752545

0 commit comments

Comments
 (0)
0