Control: tags -1 + patch
The attached patch was uploaded to Ubuntu [1].
gammapy (1.2-1ubuntu1) oracular; urgency=medium
* Do not assume endianness in some test assertions to avoid
FTBFS on s390x
[1] https://launchpad.net/ubuntu/+source/gammapy/1.2-1ubuntu1
Description: Do not assume endianness
Bug-Debian: https://bugs.debian.org/1078477
Author: Graham Inggs <[email protected]>
Last-Update: 2024-08-10
--- a/gammapy/data/tests/test_ivoa.py
+++ b/gammapy/data/tests/test_ivoa.py
@@ -9,7 +9,7 @@
assert len(obscore_default_tab.columns) == 29
assert len(obscore_default_tab["dataproduct_type"]) == 0
assert obscore_default_tab.colnames[0] == "dataproduct_type"
- assert obscore_default_tab.columns[0].dtype == "<U10"
+ assert obscore_default_tab.columns[0].dtype == "=U10"
assert obscore_default_tab.columns[0].meta["UCD"] == "meta.id"
assert obscore_default_tab.colnames[28] == "instrument_name"
assert (
--- a/gammapy/modeling/tests/test_parameter.py
+++ b/gammapy/modeling/tests/test_parameter.py
@@ -201,17 +201,17 @@
]
assert table.dtype == np.dtype(
[
- ("type", "<U1"),
- ("name", "<U1"),
- ("value", "<f8"),
- ("unit", "<U1"),
- ("error", "<f8"),
- ("min", "<f8"),
- ("max", "<f8"),
+ ("type", "=U1"),
+ ("name", "=U1"),
+ ("value", "=f8"),
+ ("unit", "=U1"),
+ ("error", "=f8"),
+ ("min", "=f8"),
+ ("max", "=f8"),
("frozen", "?"),
("is_norm", "?"),
- ("link", "<U1"),
- ("prior", "<U1"),
+ ("link", "=U1"),
+ ("prior", "=U1"),
]
)