aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon Sawicki <contact@grub4k.xyz>2023-10-15 10:54:38 +0200
committerGitHub <noreply@github.com>2023-10-15 10:54:38 +0200
commit4e38e2ae9d7380015349e6aee59c78bb3938befd (patch)
treedf43cdcff861294329182a9268cff87edae375ed /test
parent8a8b54523addf46dfd50ef599761a81bc22362e6 (diff)
[rh:requests] Handle both `bytes` and `int` for `IncompleteRead.partial` (Fix 8a8b54523addf46dfd50ef599761a81bc22362e6) (#8348)
Authored by: bashonly, coletdjnz, Grub4K
Diffstat (limited to 'test')
-rw-r--r--test/test_networking.py2
1 files changed, 1 insertions, 1 deletions
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'
),