1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: Do not try to access Internet during build
Author: Santiago Vila <sanvila@debian.org>
Bug-Debian: https://bugs.debian.org/1107280
Index: pymatgen/tests/io/vasp/test_help.py
===================================================================
--- pymatgen.orig/tests/io/vasp/test_help.py 2025-10-12 13:45:32.749915638 +0200
+++ pymatgen/tests/io/vasp/test_help.py 2025-10-12 13:47:08.783996554 +0200
@@ -11,13 +11,8 @@
BeautifulSoup = pytest.importorskip("bs4").BeautifulSoup
-try:
- response = requests.get("https://www.vasp.at/wiki/index.php/The_VASP_Manual", timeout=5)
- website_down = response.status_code != 200
- reason = f"VASP manual returned status {response.status_code}"
-except (requests.exceptions.ConnectionError, requests.exceptions.ReadTimeout) as e:
- website_down = True
- reason = f"VASP manual not reachable: {type(e).__name__}"
+website_down = True
+reason = f"Network access not used during debian builds"
if website_down:
pytest.skip(reason, allow_module_level=True)
|