Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Dec 17, 2024
1 parent fc86160 commit 0af4ff1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xarray/tests/test_cftimeindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ def date_dict(
list(ISO8601_LIKE_STRING_TESTS.values()),
ids=list(ISO8601_LIKE_STRING_TESTS.keys()),
)
@pytest.mark.parametrize("five-digit-year", [False, True], ids=["4Y", "5Y"])
@pytest.mark.parametrize("five_digit_year", [False, True], ids=["4Y", "5Y"])
@pytest.mark.parametrize("sign", ["", "+", "-"], ids=["None", "plus", "minus"])
def test_parse_iso8601_like(five, sign, string, expected):
pre = "1" if five else ""
def test_parse_iso8601_like(five_digit_year, sign, string, expected):
pre = "1" if five_digit_year else ""
datestring = sign + pre + string
result = parse_iso8601_like(datestring)
expected = expected.copy()
Expand Down

0 comments on commit 0af4ff1

Please sign in to comment.