Package: python3-astroquery
Version: 0.4.6+dfsg-3
Control: affects -1 src:astropy
Control: tags -1 +patch

Dear maintainer,

astroquery currently fails on 32-bit platforms in test_nasa_exoplanet_archive.py::test_api_tables[toi-query28]. This is reported upstream as

https://github.com/astropy/astroquery/issues/2435

it is still unclear whether the problem is going to be resolved in astroquery itself, or in astropy (see https://github.com/astropy/astropy/pull/13359). This will probably require some discussion.

For the meantime, it would be great if the affected test could be set to xfail so that both astroquery and astropy can migrate to testing.

The attached patch does this.

Best

Ole
From: Ole Streicher <oleb...@debian.org>
Date: Thu, 23 Jun 2022 17:19:17 +0200
Subject: Mark nasa_exoplanet_archive test xfail

This test fails on 32-bit architectures. It is an issue with astropy's
ASCII table reader. Until it is fixed, the test is marked as xfail.

https://github.com/astropy/astroquery/issues/2435
---
 .../nexsci/nasa_exoplanet_archive/tests/test_nasa_exoplanet_archive.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/astroquery/ipac/nexsci/nasa_exoplanet_archive/tests/test_nasa_exoplanet_archive.py b/astroquery/ipac/nexsci/nasa_exoplanet_archive/tests/test_nasa_exoplanet_archive.py
index d240a0d..93954b7 100644
--- a/astroquery/ipac/nexsci/nasa_exoplanet_archive/tests/test_nasa_exoplanet_archive.py
+++ b/astroquery/ipac/nexsci/nasa_exoplanet_archive/tests/test_nasa_exoplanet_archive.py
@@ -2,6 +2,7 @@
 import json
 import os
 import sys
+import struct
 from urllib.parse import urlencode
 
 import astropy.units as u
@@ -209,6 +210,8 @@ def test_backwards_compat(patch_get):
 
 
 @pytest.mark.parametrize("table,query", API_TABLES)
+@pytest.mark.xfail(struct.calcsize("P")==4,
+                   reason="Known failures on 32-bit archs", strict=False)
 def test_api_tables(patch_get, table, query):
     NasaExoplanetArchiveMock = NasaExoplanetArchiveClass()
 

Reply via email to