File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -282,8 +282,7 @@ def test_grib_get_array():
282
282
283
283
def test_grib_get_array_single_precision ():
284
284
if eccodes .codes_get_api_version (int ) < 23100 :
285
- print ("Test skipped (ecCodes version too old)" )
286
- return
285
+ pytest .skip ("ecCodes version too old" )
287
286
288
287
gid = eccodes .codes_grib_new_from_samples ("reduced_gg_pl_160_grib2" )
289
288
@@ -352,8 +351,8 @@ def test_grib_clone():
352
351
353
352
def test_grib_clone_headers_only ():
354
353
if eccodes .codes_get_api_version (int ) < 23400 :
355
- print ( "Test skipped ( ecCodes version too old) " )
356
- return
354
+ pytest . skip ( " ecCodes version too old" )
355
+
357
356
with open (TEST_GRIB_ERA5_DATA , "rb" ) as f :
358
357
msgid1 = eccodes .codes_grib_new_from_file (f )
359
358
msgid2 = eccodes .codes_clone (msgid1 , headers_only = True )
@@ -880,8 +879,7 @@ def test_codes_bufr_key_is_header():
880
879
881
880
def test_codes_bufr_key_is_coordinate ():
882
881
if eccodes .codes_get_api_version (int ) < 23100 :
883
- print ("Test skipped (ecCodes version too old)" )
884
- return
882
+ pytest .skip ("ecCodes version too old" )
885
883
886
884
bid = eccodes .codes_bufr_new_from_samples ("BUFR4" )
887
885
assert not eccodes .codes_bufr_key_is_coordinate (bid , "edition" )
You can’t perform that action at this time.
0 commit comments