Skip to content

Commit f7cbd64

Browse files
committed
Fix
1 parent 5dedead commit f7cbd64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_downloads.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
DECODED_SIZE_NOTE_SUFFIX,
1919
DECODED_FROM_SUFFIX,
2020
)
21-
from niquests.exceptions import ChunkedEncodingError
2221
from niquests.structures import CaseInsensitiveDict
2322
from .utils import http, MockEnvironment, cd_clean_tmp_dir, DUMMY_URL
2423

@@ -275,7 +274,7 @@ def test_incomplete_response(self):
275274
},
276275
body='12',
277276
)
278-
with cd_clean_tmp_dir(), pytest.raises(ChunkedEncodingError) as exc_info:
277+
with cd_clean_tmp_dir(), pytest.raises(Exception) as exc_info:
279278
http('--download', DUMMY_URL)
280279
assert error_msg in str(exc_info.value)
281280

0 commit comments

Comments
 (0)