Source: xarray-sentinel
Version: 0.9.6~rc1+ds-1
Severity: serious
Tags: patch
Justification: Blocks other packages from transitioning
X-Debbugs-Cc: [email protected]

The return exception for a missing dataset is now FileNotFoundError not 
ValueError:

https://github.com/pydata/xarray/commit/160a85c04f58dafabd63169a9c2c401a5888b39a

Patch:

--- tests/test_30_xarray_backends.py.orig       2026-06-01 10:44:46.164041261 
+0100
+++ tests/test_30_xarray_backends.py    2026-06-01 10:39:47.221210900 +0100
@@ -76,7 +76,7 @@

     assert isinstance(res, xr.Dataset)

-    with pytest.raises(ValueError):
+    with pytest.raises(FileNotFoundError):
         xr.open_dataset("")

Thanks
Alastair McKinstry


-- System Information:
Debian Release: 13.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.86+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_IE.UTF-8), LANGUAGE=en_IE:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to