Skip to content

Commit

Permalink
Merge branch 'main' into dh/doc-title
Browse files Browse the repository at this point in the history
  • Loading branch information
etianen committed Jan 20, 2024
2 parents f2b2825 + 12bba25 commit a8d89ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_util.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import logging
from typing import cast

import pytest

Expand Down Expand Up @@ -29,5 +30,5 @@ def test_to_levelno_str_fail() -> None:

def test_to_levelno_type_fail() -> None:
with pytest.raises(TypeError) as ex:
to_levelno(1.5) # type: ignore[arg-type]
to_levelno(cast(int, 1.5))
assert str(ex.value) == "Invalid level: 1.5"

0 comments on commit a8d89ac

Please sign in to comment.