Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbrzt committed Jun 14, 2024
1 parent 5dedead commit f7cbd64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
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

Expand Down Expand Up @@ -275,7 +274,7 @@ def test_incomplete_response(self):
},
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)

Expand Down

0 comments on commit f7cbd64

Please sign in to comment.