Codebase list astropy-healpix / b4cc6b8
Temporarily disable tests that fail due to limited FP precision Closes: #1026012 Ole Streicher 1 year, 3 months ago
2 changed file(s) with 36 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 From: Ole Streicher <olebole@debian.org>
1 Date: Tue, 3 Jan 2023 16:45:45 +0100
2 Subject: Temporarily disable tests that fail due to limited FP precision
3
4 These failures happen when the vectors are too close to a pixel
5 edge. Until this is resolved upstream these tests are marked as xfail
6 here.
7
8 Reference: https://github.com/astropy/astropy-healpix/issues/183
9
10 Closes: #1026012
11 ---
12 astropy_healpix/tests/test_healpy.py | 2 ++
13 1 file changed, 2 insertions(+)
14
15 diff --git a/astropy_healpix/tests/test_healpy.py b/astropy_healpix/tests/test_healpy.py
16 index 66c85db..596aa28 100644
17 --- a/astropy_healpix/tests/test_healpy.py
18 +++ b/astropy_healpix/tests/test_healpy.py
19 @@ -117,6 +117,7 @@ def test_pix2ang(nside_pow, frac, nest, lonlat):
20 y=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda y: abs(y) > 1e-10),
21 z=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda z: abs(z) > 1e-10))
22 @settings(max_examples=2000, derandomize=True, deadline=None)
23 +@pytest.mark.xfail(reason="https://github.com/astropy/astropy-healpix/issues/183")
24 def test_vec2pix(nside_pow, x, y, z, nest):
25 nside = 2 ** nside_pow
26 ipix1 = hp_compat.vec2pix(nside, x, y, z, nest=nest)
27 @@ -209,6 +210,7 @@ def not_at_origin(vec):
28 @given(vectors=arrays(float, (3,), elements=floats(-1, 1)).filter(not_at_origin),
29 lonlat=booleans(), ndim=integers(0, 4))
30 @settings(max_examples=500, derandomize=True, deadline=None)
31 +@pytest.mark.xfail(reason="https://github.com/astropy/astropy-healpix/issues/183")
32 def test_vec2ang(vectors, lonlat, ndim):
33 vectors = np.broadcast_to(vectors, (2,) * ndim + (3,))
34 theta1, phi1 = hp_compat.vec2ang(vectors, lonlat=lonlat)
00 0001-Increase-tolerance-in-flaky-test.patch
11 0002-Disable-deadline-for-some-flaky-tests.patch
2 Temporarily-disable-tests-that-fail-due-to-limited-FP-pre.patch