Ignore unimportant VerifyWarning
@@ -2,6 +2,7 @@ from __future__ import division, print_function
import os
from astropy.utils.data import get_pkg_data_filename
+from astropy.io.fits.verify import VerifyWarning
import matplotlib.pyplot as plt
import numpy as np
from numpy.testing import assert_array_equal
@@ -325,6 +326,9 @@ def test_tpf_from_images():
position=SkyCoord(ra, dec, unit=(u.deg, u.deg)))
assert isinstance(tpf, KeplerTargetPixelFile)
+ with warnings.catch_warnings():
+ # Some cards are too long -- to be investigated.
+ warnings.simplefilter("ignore", VerifyWarning)
# Can we write the output to disk?
# `delete=False` is necessary below to enable writing to the file on Windows
# but it means we have to clean up the tmp file ourselves
