Skip to content

Commit 5848f80

Browse files
committed
Add an explicit reason for skipping
1 parent dc410e9 commit 5848f80

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎astropy/io/fits/tests/test_hdulist.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -915,9 +915,8 @@ def test_proper_error_raised_on_non_fits_file_with_unicode(self):
915915
with pytest.raises(IOError):
916916
fits.open(filename)
917917

918-
# Avoid a spurious pyflakes warning about an unused import
919-
# of six by adding a reason string
920-
@pytest.mark.skipif(six.PY2, reason='six.PY2')
918+
@pytest.mark.skipif(six.PY2,
919+
reason='ResourceWarning is not created in Python 2')
921920
def test_no_resource_warning_raised_on_non_fits_file(self):
922921
"""
923922
Regression test for https://github.com/astropy/astropy/issues/6168

0 commit comments

Comments
 (0)