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.
2 parents 3114be9 + 2fcf21a commit 1b4ad77Copy full SHA for 1b4ad77
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