mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-06 10:08:36 +02:00
[rh:requests] Handle both bytes
and int
for IncompleteRead.partial
(Fix 8a8b54523a
) (#8348)
Authored by: bashonly, coletdjnz, Grub4K
This commit is contained in:
parent
8a8b54523a
commit
4e38e2ae9d
3 changed files with 7 additions and 8 deletions
|
@ -865,7 +865,7 @@ class TestRequestsRequestHandler(TestRequestHandlerBase):
|
|||
'3 bytes read, 4 more expected'
|
||||
),
|
||||
(
|
||||
lambda: urllib3.exceptions.IncompleteRead(partial=3, expected=5),
|
||||
lambda: urllib3.exceptions.ProtocolError('error', urllib3.exceptions.IncompleteRead(partial=3, expected=5)),
|
||||
IncompleteRead,
|
||||
'3 bytes read, 5 more expected'
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue