public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-xarray] rawhide: Adjust TestDataset.test_repr for Pandas 3.0.3
@ 2026-06-13 11:13
0 siblings, 0 replies; only message in thread
From: @ 2026-06-13 11:13 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-xarray
Branch : rawhide
Commit : e9a8d2cb45df5e81d47dfdd76245ff91abd64cd2
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-06-13T12:38:16+02:00
Stats : +26/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-xarray/c/e9a8d2cb45df5e81d47dfdd76245ff91abd64cd2?branch=rawhide
Log:
Adjust TestDataset.test_repr for Pandas 3.0.3
[skip changelog]
---
diff --git a/11384.patch b/11384.patch
new file mode 100644
index 0000000..0d23933
--- /dev/null
+++ b/11384.patch
@@ -0,0 +1,24 @@
+From ca8240081ea9585be3c2e3112014d1c9f8e1150c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
+Date: Sat, 13 Jun 2026 12:35:34 +0200
+Subject: [PATCH] Adjust TestDataset.test_repr for Pandas 3.0.3
+
+Not sure if 3.0.3 is the bordering version,
+but with it, we saw a test failure in Fedora.
+---
+ xarray/tests/test_dataset.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/xarray/tests/test_dataset.py b/xarray/tests/test_dataset.py
+index cd4f2c10eb2..2abab85b946 100644
+--- a/xarray/tests/test_dataset.py
++++ b/xarray/tests/test_dataset.py
+@@ -301,7 +301,7 @@ def test_repr(self) -> None:
+ var1 (dim1, dim2) float64 576B -0.9891 -0.3678 1.288 ... -0.2116 0.364
+ var2 (dim1, dim2) float64 576B 0.953 1.52 1.704 ... 0.1347 -0.6423
+ var3 (dim3, dim1) float64 640B 0.4107 0.9941 0.1665 ... 0.716 1.555
+- var4 (dim1) category 3{6 if Version(pd.__version__) >= Version("3.0.0dev0") else 2}B b c b a c a c a{var5}
++ var4 (dim1) category 3{6 if Version("3.0.3") > Version(pd.__version__) >= Version("3.0.0dev0") else 2}B b c b a c a c a{var5}
+ Attributes:
+ foo: bar"""
+ )
diff --git a/python-xarray.spec b/python-xarray.spec
index 2978bc4..94bc11b 100644
--- a/python-xarray.spec
+++ b/python-xarray.spec
@@ -19,6 +19,8 @@ Source: %pypi_source %{srcname}
Patch: 0001-Drop-pydap-from-dependencies.patch
# Fix failures with latest dependencies.
Patch: https://github.com/pydata/xarray/pull/11204.patch
+# Adjust TestDataset.test_repr for Pandas 3.0.3
+Patch: https://github.com/pydata/xarray/pull/11384.patch
BuildArch: noarch
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-13 11:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-13 11:13 [rpms/python-xarray] rawhide: Adjust TestDataset.test_repr for Pandas 3.0.3
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox