• Kirill Smelkov's avatar
    *_test: Verify panic argument · 773d8fb2
    Kirill Smelkov authored
    In tests in places where the code checks that something panics, verify
    not only that _PanicError is raised, but also what was the argument
    passed to panic.
    
    This makes sure that tested code panics in expected place, not just
    panics "somewhere".
    
    To keep signal/noise ratio high introduce `panics` which is similar to
    `pytest.raises` and asserts that wrapped code panics with expected
    argument.
    773d8fb2
Name
Last commit
Last update
golang Loading commit data...
gpython Loading commit data...
.gitignore Loading commit data...
CHANGELOG.rst Loading commit data...
COPYING Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...