diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 612cefd8c3e..33fb3bc168a 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -809,7 +809,7 @@ file_read(PyFileObject *f, PyObject *args) if (_PyString_Resize(&v, buffersize) < 0) return NULL; } else { - assert(bytesread == bytesrequested); + /* Got what was requested. */ break; } }