We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8cf748 commit 2fcf21aCopy full SHA for 2fcf21a
doc/en/logging.rst
@@ -161,7 +161,7 @@ the records for the ``setup`` and ``call`` stages during teardown like so:
161
yield window
162
for when in ("setup", "call"):
163
messages = [
164
- x.message for x in caplog.get_records(when) if x.level == logging.WARNING
+ x.message for x in caplog.get_records(when) if x.levelno == logging.WARNING
165
]
166
if messages:
167
pytest.fail(
0 commit comments