File: skip_missing_internet_test.patch

package info (click to toggle)
python-h5netcdf 1.6.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 596 kB
  • sloc: python: 3,877; makefile: 23
file content (16 lines) | stat: -rw-r--r-- 660 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: python-h5netcdf/h5netcdf/tests/test_h5netcdf.py
===================================================================
--- python-h5netcdf.orig/h5netcdf/tests/test_h5netcdf.py	2025-08-28 01:28:01.834014418 +0200
+++ python-h5netcdf/h5netcdf/tests/test_h5netcdf.py	2025-10-19 19:41:41.215787029 +0200
@@ -2285,7 +2285,10 @@
     fname = (
         "https://www.unidata.ucar.edu/software/netcdf/examples/OMI-Aura_L2-example.nc"
     )
-    f = h5netcdf.File(fname, "r", driver="ros3")
+    try:
+        f = h5netcdf.File(fname, "r", driver="ros3")
+    except OSError as e:
+        pytest.skip(str(e))
     assert "Temperature" in list(f)
     f.close()