Fix coverage, InvalidChunkLength is chunked and has no expected length
MODIFY
src/urllib3/exceptions.py
src/urllib3/exceptions.py
@@ -242,14 +242,9 @@ class InvalidChunkLength(HTTPError, httplib_IncompleteRead):
self.length = length
def __repr__(self):
- if self.expected is not None:
- e = ", %i more expected" % self.expected
- else:
- e = ""
- return "InvalidChunkLength(got length %r, %i bytes read%s)" % (
+ return "InvalidChunkLength(got length %r, %i bytes read)" % (
self.length,
self.partial,
- e,
)

Fix coverage, InvalidChunkLength is chunked and has no expected length