Classes | |
class | FlakyException |
Functions | |
def | test_std_exception (msg) |
def | test_error_already_set (msg) |
def | test_raise_from (msg) |
def | test_raise_from_already_set (msg) |
def | test_cross_module_exceptions (msg) |
def | test_cross_module_exception_translator () |
def | test_python_call_in_catch () |
def | ignore_pytest_unraisable_warning (f) |
def | test_python_alreadyset_in_destructor (monkeypatch, capsys) |
def | test_exception_matches () |
def | test_custom (msg) |
def | test_nested_throws (capture) |
def | test_throw_nested_exception () |
def | test_invalid_repr () |
def | test_local_translator (msg) |
def | test_error_already_set_message_with_unicode_surrogate () |
def | test_error_already_set_message_with_malformed_utf8 () |
def | test_error_already_set_what_with_happy_exceptions (exc_type, exc_value, expected_what) |
def | test_flaky_exception_failure_point_init () |
def | test_flaky_exception_failure_point_str () |
def | test_cross_module_interleaved_error_already_set () |
def | test_error_already_set_double_restore () |
def | test_pypy_oserror_normalization () |
def test_exceptions.ignore_pytest_unraisable_warning | ( | f | ) |
Definition at line 91 of file test_exceptions.py.
References hasattr().
def test_exceptions.test_cross_module_exception_translator | ( | ) |
Definition at line 79 of file test_exceptions.py.
def test_exceptions.test_cross_module_exceptions | ( | msg | ) |
Definition at line 43 of file test_exceptions.py.
def test_exceptions.test_cross_module_interleaved_error_already_set | ( | ) |
Definition at line 361 of file test_exceptions.py.
def test_exceptions.test_custom | ( | msg | ) |
Definition at line 137 of file test_exceptions.py.
References isinstance().
def test_exceptions.test_error_already_set | ( | msg | ) |
Definition at line 17 of file test_exceptions.py.
def test_exceptions.test_error_already_set_double_restore | ( | ) |
Definition at line 370 of file test_exceptions.py.
def test_exceptions.test_error_already_set_message_with_malformed_utf8 | ( | ) |
Definition at line 286 of file test_exceptions.py.
def test_exceptions.test_error_already_set_message_with_unicode_surrogate | ( | ) |
Definition at line 279 of file test_exceptions.py.
def test_exceptions.test_error_already_set_what_with_happy_exceptions | ( | exc_type, | |
exc_value, | |||
expected_what | |||
) |
Definition at line 313 of file test_exceptions.py.
def test_exceptions.test_exception_matches | ( | ) |
Definition at line 131 of file test_exceptions.py.
def test_exceptions.test_flaky_exception_failure_point_init | ( | ) |
Definition at line 322 of file test_exceptions.py.
def test_exceptions.test_flaky_exception_failure_point_str | ( | ) |
Definition at line 339 of file test_exceptions.py.
References len().
def test_exceptions.test_invalid_repr | ( | ) |
Definition at line 251 of file test_exceptions.py.
def test_exceptions.test_local_translator | ( | msg | ) |
Tests that a local translator works and that the local translator from the cross module is not applied
Definition at line 260 of file test_exceptions.py.
References isinstance().
def test_exceptions.test_nested_throws | ( | capture | ) |
Tests nested (e.g. C++ -> Python -> C++) exception handling
Definition at line 192 of file test_exceptions.py.
def test_exceptions.test_pypy_oserror_normalization | ( | ) |
Definition at line 380 of file test_exceptions.py.
def test_exceptions.test_python_alreadyset_in_destructor | ( | monkeypatch, | |
capsys | |||
) |
Definition at line 103 of file test_exceptions.py.
References hasattr().
def test_exceptions.test_python_call_in_catch | ( | ) |
Definition at line 85 of file test_exceptions.py.
def test_exceptions.test_raise_from | ( | msg | ) |
Definition at line 28 of file test_exceptions.py.
def test_exceptions.test_raise_from_already_set | ( | msg | ) |
Definition at line 36 of file test_exceptions.py.
def test_exceptions.test_std_exception | ( | msg | ) |
Definition at line 11 of file test_exceptions.py.
def test_exceptions.test_throw_nested_exception | ( | ) |
Definition at line 243 of file test_exceptions.py.