Skip to content

Commit 8ff1145

Browse files
committed
update hrrr test, don't test write netcdf if python < 3.11
1 parent 8230c35 commit 8ff1145

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

tests/test_hrrr.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@
44
"""
55
Tests for downloading HRRR model
66
"""
7+
8+
import os
9+
import sys
710
from datetime import datetime, timedelta
811
from shutil import which
912

13+
import pandas as pd
1014
import pytest
11-
12-
from herbie import Herbie, Path, config
13-
import os
1415
import requests
15-
import pandas as pd
1616

17+
from herbie import Herbie, Path, config
1718

1819
now = datetime.now()
1920
today = datetime(now.year, now.month, now.day, now.hour) - timedelta(hours=6)
@@ -58,6 +59,7 @@ def test_hrrr_xarray():
5859
H.get_localFilePath("TMP:2 m").unlink()
5960

6061

62+
@pytest.mark.skipif(sys.version_info < (3, 11), reason="Requires Python > 3.10")
6163
def test_hrrr_to_netcdf():
6264
"""Check that a xarray Dataset can be written to a NetCDF file.
6365

0 commit comments

Comments
 (0)