Skip to content

Commit cc8d915

Browse files
committed
Fix some tests requiring dev asdf-astropy
1 parent a66756e commit cc8d915

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ndcube/asdf/converters/tests/test_ndcube_converter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
def test_serialization(all_ndcubes, tmp_path, all_ndcubes_names):
1313
# asdf_astropy doesn't save _naxis before this PR: https://github.com/astropy/asdf-astropy/pull/276
14-
if Version(asdf_astropy.__version__) < Version("0.8.0") and isinstance(all_ndcubes.wcs, astropy.wcs.WCS):
14+
if Version(asdf_astropy.__version__) < Version("0.9.0") and isinstance(all_ndcubes.wcs, astropy.wcs.WCS):
1515
all_ndcubes.wcs._naxis = [0, 0]
1616

1717
if not isinstance(all_ndcubes.data, np.ndarray):
@@ -28,8 +28,8 @@ def test_serialization(all_ndcubes, tmp_path, all_ndcubes_names):
2828

2929
@pytest.mark.parametrize("expected_cube", ["ndcube_gwcs_3d_ln_lt_l", "ndcube_3d_ln_lt_l"], indirect=True)
3030
def test_serialization_sliced_ndcube(expected_cube, tmp_path):
31-
# This needs 0.8.0 of asdf_astropy to be able to save gwcs and to save array_shape on WCS
32-
pytest.importorskip("asdf_astropy", "0.8.0")
31+
# This needs 0.9.0 of asdf_astropy to be able to save gwcs and to save array_shape on WCS
32+
pytest.importorskip("asdf_astropy", "0.9.0")
3333

3434
sndc = expected_cube[np.s_[0, :, :]]
3535
file_path = tmp_path / "test.asdf"

0 commit comments

Comments
 (0)