Skip to content

Commit 584c052

Browse files
committed
Fix linting and change False to True as requested in review
1 parent 4e93dc2 commit 584c052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/en/warnings.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,10 @@ are met.
344344
with pytest.warns(Warning) as record:
345345
f()
346346
if not record:
347-
pytest.fail('Expected a warning!')
347+
pytest.fail("Expected a warning!")
348348
349349
If no warnings are issued when calling ``f``, then ``not record`` will
350-
evaluate to ``False``. You can then call ``pytest.fail`` with a
350+
evaluate to ``True``. You can then call ``pytest.fail`` with a
351351
custom error message.
352352

353353
.. _internal-warnings:

0 commit comments

Comments
 (0)