We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11e65fe commit 514d102Copy full SHA for 514d102
2 files changed
Lib/test/test_io/test_memoryio.py
@@ -634,6 +634,7 @@ def test_peek(self):
634
self.assertEqual(memio.peek(), self.EOF)
635
636
637
+ # Peek after close raises
638
self.assertRaises(ValueError, memio.peek)
639
640
def test_unicode(self):
Modules/_io/bytesio.c
@@ -420,7 +420,7 @@ _io_BytesIO_tell_impl(bytesio *self)
420
return PyLong_FromSsize_t(self->pos);
421
}
422
423
-// Read without advancing position
+/* Read without advancing position. */
424
static PyObject *
425
peek_bytes_lock_held(bytesio *self, Py_ssize_t size)
426
{
0 commit comments