GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #18281 from pllim/rm-funcky-test · astropy/astropy@75a1ca7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • astropy/cosmology/_src/tests/funcs
    • test_funcs.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎astropy/cosmology/_src/tests/funcs/test_funcs.py‎

Copy file name to clipboardExpand all lines: astropy/cosmology/_src/tests/funcs/test_funcs.py
-19Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
wpwaCDM,
3030
z_at_value,
3131
)
32-
from astropy.cosmology._src.funcs.optimize import _z_at_scalar_value
3332
from astropy.units import allclose
34-
from astropy.utils.compat import NUMPY_LT_2_3
3533
from astropy.utils.compat.optional_deps import HAS_SCIPY
3634
from astropy.utils.exceptions import AstropyUserWarning
3735

@@ -173,23 +171,6 @@ def test_scalar_input_to_output(self):
173171
assert z.shape == ()
174172

175173

176-
@pytest.mark.skipif(not HAS_SCIPY, reason="test requires scipy")
177-
@pytest.mark.xfail(
178-
not NUMPY_LT_2_3, reason="TODO fix: https://github.com/astropy/astropy/issues/18045"
179-
)
180-
def test_z_at_value_numpyvectorize():
181-
"""Test that numpy vectorize fails on Quantities.
182-
183-
If this test starts failing then numpy vectorize can be used instead of
184-
the home-brewed vectorization. Please submit a PR making the change.
185-
"""
186-
z_at_value = np.vectorize(
187-
_z_at_scalar_value, excluded=["func", "method", "verbose"]
188-
)
189-
with pytest.raises(u.UnitConversionError, match="dimensionless quantities"):
190-
z_at_value(Planck15.age, 10 * u.Gyr)
191-
192-
193174
@pytest.mark.skipif(not HAS_SCIPY, reason="test requires scipy")
194175
def test_z_at_value_verbose(monkeypatch):
195176
cosmo = Planck13

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.