requires_fits

sherpa.utils.testing.requires_fits(test_function)[source] [edit on github]

Returns True if a working backend for FITS I/O is importable.

Used to skip tests requiring fits_io. The dummy backend itself is not a “working backend” in the sense that it cannot be used to read or write files.