22
33# TEST_UNICODE_LITERALS
44
5+ import os
56import re
6- import platform
77
88import numpy as np
99
@@ -96,7 +96,7 @@ def test_read_with_names_arg(fast_reader):
9696 dat = ascii .read (['c d' , 'e f' ], names = ('a' , ), guess = False , fast_reader = fast_reader )
9797
9898
99- @pytest .mark .skipif (platform . system () == 'Windows' , reason = "fails on AppVeyor" )
99+ @pytest .mark .skipif (os . environ . get ( 'APPVEYOR' ) , reason = "fails on AppVeyor" )
100100@pytest .mark .parametrize ('fast_reader' , [True , False , 'force' ])
101101def test_read_all_files (fast_reader ):
102102 for testfile in get_testfiles ():
@@ -118,7 +118,7 @@ def test_read_all_files(fast_reader):
118118 assert_equal (len (table [colname ]), testfile ['nrows' ])
119119
120120
121- @pytest .mark .skipif (platform . system () == 'Windows' , reason = "fails on AppVeyor" )
121+ @pytest .mark .skipif (os . environ . get ( 'APPVEYOR' ) , reason = "fails on AppVeyor" )
122122@pytest .mark .parametrize ('fast_reader' , [True , False , 'force' ])
123123def test_read_all_files_via_table (fast_reader ):
124124 for testfile in get_testfiles ():
@@ -205,7 +205,7 @@ def test_daophot_multiple_aperture():
205205 assert np .all (table ['RAPERT5' ] == 23.3 ) # assert all the 5th apertures are same 23.3
206206
207207
208- @pytest .mark .skipif (platform . system () == 'Windows' , reason = "fails on AppVeyor" )
208+ @pytest .mark .skipif (os . environ . get ( 'APPVEYOR' ) , reason = "fails on AppVeyor" )
209209@pytest .mark .parametrize ('fast_reader' , [True , False , 'force' ])
210210def test_empty_table_no_header (fast_reader ):
211211 with pytest .raises (ascii .InconsistentTableError ):
0 commit comments