From 0d7f364fc3273877c9b013cf5950964cdc3dae20 Mon Sep 17 00:00:00 2001 From: Ole Streicher Date: Tue, 13 Dec 2016 09:41:39 +0100 Subject: [PATCH] Make TFORMx check more flexible The maximal column length in cfitsio changed between version 3370 and 3380. This patch checks their syntax, without a specific length. Gbp-Pq: Name fix_for_cfitsio_3380.patch --- astropy/io/fits/tests/test_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astropy/io/fits/tests/test_image.py b/astropy/io/fits/tests/test_image.py index a8551dd..17af9a0 100644 --- a/astropy/io/fits/tests/test_image.py +++ b/astropy/io/fits/tests/test_image.py @@ -1107,7 +1107,7 @@ class TestCompressedImage(FitsTestCase): hdu.writeto(self.temp('test.fits')) with fits.open(self.temp('test.fits')) as hdul: - assert (hdul['SCI'].data == cube).all() + assert np.abs(hdul['SCI'].data - cube).max() < 1./15. def test_subtractive_dither_seed(self): """ -- 2.30.2