summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruno Oliveira <nicoddemus@gmail.com>2019-09-23 12:09:01 -0300
committerBruno Oliveira <nicoddemus@gmail.com>2019-09-23 12:09:01 -0300
commitd3d9f9f6689a6c026c2749644ff528fa7d83fb98 (patch)
treec4acb729fe2db36431ff8ac511efc11714d61686 /doc
parentc1361b48f83911aa721b21a4515a5446515642e2 (diff)
parent018edf2a0eebfbd507ac0a9e8bd239b58d5e925d (diff)
downloadpytest-d3d9f9f6689a6c026c2749644ff528fa7d83fb98.tar.gz
Merge remote-tracking branch 'upstream/master' into mm
Diffstat (limited to 'doc')
-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(