Skip to content

Commit 1b26827

Browse files
authored
Remove peek() call and call ByteIO directly.
Fixes backport to 3.14 tree.
1 parent 211bf78 commit 1b26827

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/test/test_free_threading/test_io.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def sizeof(barrier, b, *ignore):
116116
@threading_helper.requires_working_threading()
117117
@threading_helper.reap_threads
118118
def test_concurrent_whole_buffer_read_and_resize(self):
119-
shared = self.ioclass(b"x" * 64)
119+
shared = BytesIO(b"x" * 64)
120120
writers = 2
121121
readers = 8
122122
loops = 2000
@@ -134,7 +134,6 @@ def reader():
134134
shared.seek(0)
135135
shared.read()
136136
shared.seek(0)
137-
shared.peek()
138137
shared.getvalue()
139138

140139
threads = [threading.Thread(target=writer) for _ in range(writers)]

0 commit comments

Comments
 (0)