Fix linting and change False to True as requested in review

This commit is contained in:
Bruno Oliveira 2019-02-05 19:04:26 -02:00
parent 4e93dc2c97
commit 584c052da4
1 changed files with 2 additions and 2 deletions

View File

@ -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: