Skip to content

Commit 049e562

Browse files
committed
Testing: use pytest.skip rather than a return statement
1 parent afe1010 commit 049e562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_eccodes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ def test_bufr_copy_data():
965965
# ---------------------------------------------
966966
def test_grib_nearest2():
967967
if "codes_grib_nearest_new" not in dir(eccodes):
968-
return
968+
pytest.skip("codes_grib_nearest_new absent")
969969
gid = eccodes.codes_grib_new_from_samples("gg_sfc_grib2")
970970
lat, lon = 40, 20
971971
flags = eccodes.CODES_GRIB_NEAREST_SAME_GRID | eccodes.CODES_GRIB_NEAREST_SAME_POINT

0 commit comments

Comments
 (0)