Skip to content

Commit

Permalink
fix pypy test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Oct 19, 2024
1 parent 32ffd3a commit 99dd022
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/times_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def test_parse_year(self) -> None:
def test_parse_year_0(self) -> None:
with pytest.raises(
ValueError,
match="^year 0 is out of range$|^year must be in 1..9999$",
match="^year 0 is out of range$|year must be in 1..9999",
):
KmlDateTime.parse("0000")

Expand All @@ -123,11 +123,11 @@ def test_parse_year_month_no_dash(self) -> None:
assert dt.dt == datetime.datetime(2000, 4, 1, tzinfo=tzutc())

def test_parse_year_month_0(self) -> None:
with pytest.raises(ValueError, match="^month must be in 1..12$"):
with pytest.raises(ValueError, match="month must be in 1..12"):
KmlDateTime.parse("2000-00")

def test_parse_year_month_13(self) -> None:
with pytest.raises(ValueError, match="^month must be in 1..12$"):
with pytest.raises(ValueError, match="month must be in 1..12"):
KmlDateTime.parse("2000-13")

def test_parse_year_month_day(self) -> None:
Expand All @@ -145,7 +145,7 @@ def test_parse_year_month_day_no_dash(self) -> None:
def test_parse_year_month_day_0(self) -> None:
with pytest.raises(
ValueError,
match="^day is out of range for month$|^day must be in 1..31'$",
match="^day is out of range for month$|day must be in 1..31",
):
KmlDateTime.parse("2000-05-00")

Expand Down

0 comments on commit 99dd022

Please sign in to comment.