Skip to content

Commit

Permalink
Testing: use pytest.skip rather than a return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Mar 6, 2024
1 parent afe1010 commit 049e562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_eccodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ def test_bufr_copy_data():
# ---------------------------------------------
def test_grib_nearest2():
if "codes_grib_nearest_new" not in dir(eccodes):
return
pytest.skip("codes_grib_nearest_new absent")
gid = eccodes.codes_grib_new_from_samples("gg_sfc_grib2")
lat, lon = 40, 20
flags = eccodes.CODES_GRIB_NEAREST_SAME_GRID | eccodes.CODES_GRIB_NEAREST_SAME_POINT
Expand Down

0 comments on commit 049e562

Please sign in to comment.