Fix linting and change False to True as requested in review
This commit is contained in:
parent
4e93dc2c97
commit
584c052da4
|
@ -344,10 +344,10 @@ are met.
|
||||||
with pytest.warns(Warning) as record:
|
with pytest.warns(Warning) as record:
|
||||||
f()
|
f()
|
||||||
if not record:
|
if not record:
|
||||||
pytest.fail('Expected a warning!')
|
pytest.fail("Expected a warning!")
|
||||||
|
|
||||||
If no warnings are issued when calling ``f``, then ``not record`` will
|
If no warnings are issued when calling ``f``, then ``not record`` will
|
||||||
evaluate to ``False``. You can then call ``pytest.fail`` with a
|
evaluate to ``True``. You can then call ``pytest.fail`` with a
|
||||||
custom error message.
|
custom error message.
|
||||||
|
|
||||||
.. _internal-warnings:
|
.. _internal-warnings:
|
||||||
|
|
Loading…
Reference in New Issue