@raises(wcs.InvalidTransformError)
def test_find_all_wcs_crash():
 with open(get_pkg_data_filename(u'data/too_many_pv.hdr')) as fd:
  header = fd.read()
 wcses = wcs.find_all_wcs(header, fix=False)

@ raises ( wcs . InvalidTransformError ) def test_find_all_wcs_crash ( ) : with open ( get_pkg_data_filename ( u'data/too_many_pv.hdr' ) ) as fd : header = fd . read ( ) wcses = wcs . find_all_wcs ( header , fix = False )
causes a double free without a recent fix in wcslib_wrap .