summaryrefslogtreecommitdiff
path: root/doc/en/logging.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/en/logging.rst')
-rw-r--r--doc/en/logging.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/en/logging.rst b/doc/en/logging.rst
index c32205f13..e6f91cdf7 100644
--- a/doc/en/logging.rst
+++ b/doc/en/logging.rst
@@ -161,7 +161,7 @@ the records for the ``setup`` and ``call`` stages during teardown like so:
yield window
for when in ("setup", "call"):
messages = [
- 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
]
if messages:
pytest.fail(