Skip to content

Commit 9953358

Browse files
committed
xfailing tests for np1.12 and windows that are affected by astropy#5797
1 parent 3ba5abd commit 9953358

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import glob
44
import io
55
import os
6+
import platform
67
import sys
78

89
import numpy as np
@@ -12,6 +13,7 @@
1213
from ....io import fits
1314
from ....tests.helper import pytest, raises, catch_warnings, ignore_warnings
1415
from ....utils.exceptions import AstropyUserWarning, AstropyDeprecationWarning
16+
from ...utils.compat import NUMPY_LT_1_12
1517

1618
from . import FitsTestCase
1719

@@ -528,6 +530,9 @@ def test_update_with_truncated_header(self):
528530
with fits.open(self.temp('temp.fits')) as hdul:
529531
assert (hdul[0].data == data).all()
530532

533+
534+
@pytest.mark.xfail(platform.system() == 'Windows' and not NUMPY_LT_1_12,
535+
reason='https://github.com/astropy/astropy/issues/5797')
531536
def test_update_resized_header(self):
532537
"""
533538
Test saving updates to a file where the header is one block smaller

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import math
66
import os
7+
import platform
78
import re
89
import time
910
import warnings
@@ -13,7 +14,7 @@
1314
from ....extern.six.moves import range
1415
from ....io import fits
1516
from ....utils.exceptions import AstropyPendingDeprecationWarning
16-
from ....utils.compat import NUMPY_LT_1_10
17+
from ....utils.compat import NUMPY_LT_1_12
1718
from ....tests.helper import pytest, raises, catch_warnings, ignore_warnings
1819
from ..hdu.compressed import SUBTRACTIVE_DITHER_1, DITHER_SEED_CHECKSUM
1920
from .test_table import comparerecords
@@ -118,6 +119,8 @@ def test_primary_with_extname(self):
118119
with fits.open(self.temp('test.fits')) as hdul:
119120
assert hdul[0].name == 'XPRIMARY2'
120121

122+
@pytest.mark.xfail(platform.system() == 'Windows' and not NUMPY_LT_1_12,
123+
reason='https://github.com/astropy/astropy/issues/5797')
121124
def test_io_manipulation(self):
122125
# Get a keyword value. An extension can be referred by name or by
123126
# number. Both extension and keyword names are case insensitive.

0 commit comments

Comments
 (0)