Debian Codegraph @

debian/patches/test_exodus_no_connection.patch

raw
1 Index: io4dolfinx/tests/test_exodus.py
2 ===================================================================
3 --- io4dolfinx.orig/tests/test_exodus.py 2026-08-27 15:41:49.893569326 +0200
4 +++ io4dolfinx/tests/test_exodus.py 2026-08-27 15:43:30.248060101 +0200
5 @@ -27,7 +27,8 @@
6 urllib.request.urlretrieve(url, filename)
7 status = DownloadStatus.success
8 except urllib.error.URLError as e:
9 - if str(e) == "<urlopen error [Errno -3] Temporary failure in name resolution>":
10 + if (str(e) == "<urlopen error [Errno -3] Temporary failure in name resolution>"
11 + or str(e) == "<urlopen error [Errno 111] Connection refused>"):
12 status = DownloadStatus.no_connection
13 else:
14 status = DownloadStatus.failed