From: Ole Streicher Date: Tue, 13 Dec 2016 08:41:39 +0000 (+0100) Subject: Make TFORMx check more flexible The maximal column length in cfitsio changed between... X-Git-Tag: archive/raspbian/2.0.2-2+rpi1~1^2^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0d7f364fc3273877c9b013cf5950964cdc3dae20;p=python-astropy.git 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 --- 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): """