Skip to content

Commit abbd8f0

Browse files
committed
Fix free-threading test
1 parent 7ac914e commit abbd8f0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/test/test_free_threading/test_io.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ def readinto(barrier, b, into, *ignore):
6767
barrier.wait()
6868
b.readinto(into)
6969

70-
def peek(barrier, b, into, *ignore):
70+
def peek(barrier, b, *ignore):
7171
barrier.wait()
72-
b.peek(into)
72+
b.peek()
7373

7474
def close(barrier, b, *ignore):
7575
barrier.wait()
@@ -107,6 +107,7 @@ def sizeof(barrier, b, *ignore):
107107
self.check([truncate] + [readline] * 10, self.ioclass(b'0\n'*20480))
108108
self.check([truncate] + [readlines] * 10, self.ioclass(b'0\n'*20480))
109109
self.check([truncate] + [readinto] * 10, self.ioclass(b'0\n'*204800), bytearray(b'0\n'*204800))
110+
self.check([truncate] + [peek] * 10, self.ioclass(b'0\n'*204800))
110111
self.check([close] + [write] * 10, self.ioclass())
111112
self.check([truncate] + [getvalue] * 10, self.ioclass(b'0\n'*204800))
112113
self.check([truncate] + [getbuffer] * 10, self.ioclass(b'0\n'*204800))

0 commit comments

Comments
 (0)