Skip to content

Commit fc60f2f

Browse files
committed
Add test to ensure % can be logged w/o args
Ref #479
1 parent 2134a44 commit fc60f2f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_log_levels.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,3 +267,11 @@ async def test_async_contextvars_merged(self, meth, args, cl):
267267
await getattr(bl, meth)(*args)
268268
assert len(cl.calls) == 1
269269
assert "context_included" in cl.calls[0].kwargs
270+
271+
def test_log_percent(self, bl, cl):
272+
"""
273+
As long as there's no positional args passed, logging % is possible.
274+
"""
275+
bl.info("hey %! %%!")
276+
277+
assert [("info", (), {"event": "hey %! %%!"})] == cl.calls

0 commit comments

Comments
 (0)