From 4e38e2ae9d7380015349e6aee59c78bb3938befd Mon Sep 17 00:00:00 2001 From: Simon Sawicki Date: Sun, 15 Oct 2023 10:54:38 +0200 Subject: [rh:requests] Handle both `bytes` and `int` for `IncompleteRead.partial` (Fix 8a8b54523addf46dfd50ef599761a81bc22362e6) (#8348) Authored by: bashonly, coletdjnz, Grub4K --- test/test_networking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_networking.py b/test/test_networking.py index 2b45deac7..689161fb2 100644 --- a/test/test_networking.py +++ b/test/test_networking.py @@ -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' ), -- cgit v1.2.3