From f7cbd64eb8fc250544d22a6b41e2328468bc2983 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Fri, 14 Jun 2024 16:33:00 +0200 Subject: [PATCH] Fix --- tests/test_downloads.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_downloads.py b/tests/test_downloads.py index 516342d4..9845e3d3 100644 --- a/tests/test_downloads.py +++ b/tests/test_downloads.py @@ -18,7 +18,6 @@ from httpie.downloads import ( DECODED_SIZE_NOTE_SUFFIX, DECODED_FROM_SUFFIX, ) -from niquests.exceptions import ChunkedEncodingError from niquests.structures import CaseInsensitiveDict from .utils import http, MockEnvironment, cd_clean_tmp_dir, DUMMY_URL @@ -275,7 +274,7 @@ class TestDownloader: }, body='12', ) - with cd_clean_tmp_dir(), pytest.raises(ChunkedEncodingError) as exc_info: + with cd_clean_tmp_dir(), pytest.raises(Exception) as exc_info: http('--download', DUMMY_URL) assert error_msg in str(exc_info.value)