Skip to content

Commit

Permalink
Get rid of the last warning in the tests (#226)
Browse files Browse the repository at this point in the history
# Description
Get rid of the last warning when running the tests.
  • Loading branch information
jesper-friis authored Jun 24, 2024
1 parent 590eb5d commit 3f15781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_literals.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_untyped() -> None:
# Check two things here:
# 1) that a plain literal compares false to a non-string literal
# 2) that we get a warning about unknown XSD.ENTITY datatype
with pytest.warns(UserWarning):
with pytest.warns(UserWarning, match="^unknown datatype"):
assert literal != Literal("Hello world!", datatype=XSD.ENTITY)


Expand Down

0 comments on commit 3f15781

Please sign in to comment.