Skip to content
Open
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 tests/integration/slices/numpy_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
headers = {
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0"
}
request_opts = {"headers": headers, "params": {"raw": "true"}}
request_opts = {"headers": headers, "params": {"raw": "true"}, "timeout": 30}
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review: The timeout lives in request_opts so the existing requests.get call shape stays the same while the data download no longer waits indefinitely when GitHub stalls.

import os
import requests

Expand Down