Commit 76b76574 authored by Leo Pound Singer's avatar Leo Pound Singer

Fix unit test failure with Astropy < 4.0

parent 43b24cab
Pipeline #103194 passed with stages
in 77 minutes and 56 seconds
......@@ -10,6 +10,8 @@ Changelog
the wheels are now built for the `manylinux2014
<https://www.python.org/dev/peps/pep-0599/>`_ standard.
- Fix a unit test failure with astropy < 4.0.0.
0.1.15 (2020-01-05)
===================
......
......@@ -116,7 +116,12 @@ def test_zoom_axes(rcparams):
ax.scalebar((0.1, 0.1), 30 * u.arcmin)
ax.grid()
for key in ['ra', 'dec']:
ax.coords[key].set_auto_axislabel(False)
try:
ax.coords[key].set_auto_axislabel(False)
except AttributeError:
# FIXME: CoordinateHelper.set_auto_axislabel was added in
# astropy-4.0, but we currently support astropy >= 3.1.
pass
return fig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment