Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion multiurl/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from .base import DownloaderBase
from .multipart import DecodeMultipart, PartFilter, compute_byte_ranges
from .retry import robust
from .retry import robust, RETRIABLE

LOG = logging.getLogger(__name__)

Expand Down
6 changes: 6 additions & 0 deletions tests/test_http.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from multiurl.http import RETRIABLE


def test_retriable_is_list_or_tuple():
assert isinstance(RETRIABLE, (list, tuple))

4 changes: 4 additions & 0 deletions tests/test_robust.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def killer():
save.cancel()


def test_retriable_is_list_or_tuple():
assert isinstance(RETRIABLE, (list, tuple))


def test_robust():
sleep = 5
with timeout(len(RETRIABLE * sleep * 10)):
Expand Down
Loading