def test_write_stringio_discontiguous(self):

            data = np.arange(100)[::3]
            hdu = fits.PrimaryHDU(data=data)
            fileobj = StringIO.StringIO()
            hdu.writeto(fileobj)

            fileobj.seek(0)

            with fits.open(fileobj) as h:
                assert np.all(h[0].data == data)
Regression test related to
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/tests/test_core.py/TestFileFunctions.test_write_stringio_discontiguous