File: no_retry_requests_package.patch

package info (click to toggle)
python-pyvista 0.46.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 176,968 kB
  • sloc: python: 94,346; sh: 216; makefile: 70
file content (27 lines) | stat: -rw-r--r-- 795 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/tests/examples/test_downloads.py b/tests/examples/test_downloads.py
index 2585e40..b17d272 100644
--- a/tests/examples/test_downloads.py
+++ b/tests/examples/test_downloads.py
@@ -6,7 +6,6 @@ from pathlib import PureWindowsPath
 
 import pytest
 import requests
-from retry_requests import retry
 
 import pyvista as pv
 from pyvista import examples
@@ -39,13 +38,8 @@ def test_dataset_loader_name_matches_download_name(test_case: DatasetLoaderTestC
 
 
 def _is_valid_url(url):
-    session = retry(
-        status_to_retry=[500, 502, 504, 403, 429],  # default + GH rate limit (403, 429)
-        retries=5,
-        backoff_factor=2.0,
-    )
     try:
-        session.get(url)
+        requests.get(url)
     except requests.RequestException:
         return False
     else: