Skip to content

Commit 28e85e2

Browse files
committed
Add clone with headers_only option (take 2)
1 parent 55a01ff commit 28e85e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_eccodes.py

+3
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,9 @@ def test_grib_clone():
351351

352352

353353
def test_grib_clone_headers_only():
354+
if eccodes.codes_get_api_version(int) < 23400:
355+
print("Test skipped (ecCodes version too old)")
356+
return
354357
with open(TEST_GRIB_ERA5_DATA, "rb") as f:
355358
msgid1 = eccodes.codes_grib_new_from_file(f)
356359
msgid2 = eccodes.codes_clone(msgid1, headers_only=True)

0 commit comments

Comments
 (0)