Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 33 lines 1.3 kB view raw
1From 9a7f821351f0870608b2fa3e1be31bda70707913 Mon Sep 17 00:00:00 2001 2From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> 3Date: Fri, 2 May 2025 13:49:06 -0400 4Subject: [PATCH] TST: xfail test_z_at_value_numpyvectorize for numpy 2.3.dev 5 and later until we can fix the underlying issue 6 7Originally this is 8https://github.com/astropy/astropy/commit/9fce0d46c5e1807d7e1030c3cb0b1a9c0a359dd9 9but the path to the file has changed since the release currently in nixpkgs. 10--- 11 astropy/cosmology/_src/tests/funcs/test_funcs.py | 4 ++++ 12 1 file changed, 4 insertions(+) 13 14--- a/astropy/cosmology/funcs/tests/test_funcs.py 15+++ b/astropy/cosmology/funcs/tests/test_funcs.py 16@@ -31,6 +31,7 @@ 17 ) 18 from astropy.cosmology._src.funcs.optimize import _z_at_scalar_value 19 from astropy.units import allclose 20+from astropy.utils.compat import NUMPY_LT_2_3 21 from astropy.utils.compat.optional_deps import HAS_SCIPY 22 from astropy.utils.exceptions import AstropyUserWarning 23 24@@ -173,6 +174,9 @@ def test_scalar_input_to_output(self): 25 26 27 @pytest.mark.skipif(not HAS_SCIPY, reason="test requires scipy") 28+@pytest.mark.xfail( 29+ not NUMPY_LT_2_3, reason="TODO fix: https://github.com/astropy/astropy/issues/18045" 30+) 31 def test_z_at_value_numpyvectorize(): 32 """Test that numpy vectorize fails on Quantities. 33