Skip to content

Commit 07953c6

Browse files
committed
Fix again
1 parent 89820d1 commit 07953c6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/test_libzim_creator.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,7 @@ def test_creator_additem(fpath, lipsum_item):
373373
c.add_item(None) # pyright: ignore [reportCallIssue, reportArgumentType]
374374
with pytest.raises(RuntimeError):
375375
c.add_item("hello") # pyright: ignore [reportCallIssue, reportArgumentType]
376-
with pytest.raises(
377-
TypeError,
378-
match=r"add\_item\(\) got an unexpected keyword argument 'mimetype'",
379-
):
376+
with pytest.raises(TypeError, match="takes exactly 1 positional argument"):
380377
c.add_item(mimetype="text/html") # pyright: ignore [reportCallIssue]
381378

382379

0 commit comments

Comments
 (0)