Classes | Functions
test_exceptions Namespace Reference

Classes

class  FlakyException
 

Functions

def _test_flaky_exception_failure_point_init_before_py_3_12 ()
 
def _test_flaky_exception_failure_point_init_py_3_12 ()
 
def ignore_pytest_unraisable_warning (f)
 
def test_cross_module_exception_translator ()
 
def test_cross_module_exceptions (msg)
 
def test_cross_module_interleaved_error_already_set ()
 
def test_custom (msg)
 
def test_error_already_set (msg)
 
def test_error_already_set_double_restore ()
 
def test_error_already_set_message_with_malformed_utf8 ()
 
def test_error_already_set_message_with_unicode_surrogate ()
 
def test_error_already_set_what_with_happy_exceptions (exc_type, exc_value, expected_what)
 
def test_exception_matches ()
 
def test_flaky_exception_failure_point_init ()
 
def test_flaky_exception_failure_point_str ()
 
def test_fn_cast_int_exception ()
 
def test_invalid_repr ()
 
def test_local_translator (msg)
 
def test_nested_throws (capture)
 
def test_pypy_oserror_normalization ()
 
def test_python_alreadyset_in_destructor (monkeypatch, capsys)
 
def test_python_call_in_catch ()
 
def test_raise_from (msg)
 
def test_raise_from_already_set (msg)
 
def test_std_exception (msg)
 
def test_throw_nested_exception ()
 

Function Documentation

◆ _test_flaky_exception_failure_point_init_before_py_3_12()

def test_exceptions._test_flaky_exception_failure_point_init_before_py_3_12 ( )
private

Definition at line 320 of file test_exceptions.py.

◆ _test_flaky_exception_failure_point_init_py_3_12()

def test_exceptions._test_flaky_exception_failure_point_init_py_3_12 ( )
private

Definition at line 339 of file test_exceptions.py.

◆ ignore_pytest_unraisable_warning()

def test_exceptions.ignore_pytest_unraisable_warning (   f)

Definition at line 92 of file test_exceptions.py.

◆ test_cross_module_exception_translator()

def test_exceptions.test_cross_module_exception_translator ( )

Definition at line 80 of file test_exceptions.py.

◆ test_cross_module_exceptions()

def test_exceptions.test_cross_module_exceptions (   msg)

Definition at line 44 of file test_exceptions.py.

◆ test_cross_module_interleaved_error_already_set()

def test_exceptions.test_cross_module_interleaved_error_already_set ( )

Definition at line 382 of file test_exceptions.py.

◆ test_custom()

def test_exceptions.test_custom (   msg)

Definition at line 138 of file test_exceptions.py.

◆ test_error_already_set()

def test_exceptions.test_error_already_set (   msg)

Definition at line 17 of file test_exceptions.py.

◆ test_error_already_set_double_restore()

def test_exceptions.test_error_already_set_double_restore ( )

Definition at line 391 of file test_exceptions.py.

◆ test_error_already_set_message_with_malformed_utf8()

def test_exceptions.test_error_already_set_message_with_malformed_utf8 ( )

Definition at line 285 of file test_exceptions.py.

◆ test_error_already_set_message_with_unicode_surrogate()

def test_exceptions.test_error_already_set_message_with_unicode_surrogate ( )

Definition at line 278 of file test_exceptions.py.

◆ test_error_already_set_what_with_happy_exceptions()

def test_exceptions.test_error_already_set_what_with_happy_exceptions (   exc_type,
  exc_value,
  expected_what 
)

Definition at line 312 of file test_exceptions.py.

◆ test_exception_matches()

def test_exceptions.test_exception_matches ( )

Definition at line 132 of file test_exceptions.py.

◆ test_flaky_exception_failure_point_init()

def test_exceptions.test_flaky_exception_failure_point_init ( )

Definition at line 356 of file test_exceptions.py.

◆ test_flaky_exception_failure_point_str()

def test_exceptions.test_flaky_exception_failure_point_str ( )

Definition at line 363 of file test_exceptions.py.

◆ test_fn_cast_int_exception()

def test_exceptions.test_fn_cast_int_exception ( )

Definition at line 407 of file test_exceptions.py.

◆ test_invalid_repr()

def test_exceptions.test_invalid_repr ( )

Definition at line 251 of file test_exceptions.py.

◆ test_local_translator()

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.

◆ test_nested_throws()

def test_exceptions.test_nested_throws (   capture)
Tests nested (e.g. C++ -> Python -> C++) exception handling

Definition at line 193 of file test_exceptions.py.

◆ test_pypy_oserror_normalization()

def test_exceptions.test_pypy_oserror_normalization ( )

Definition at line 401 of file test_exceptions.py.

◆ test_python_alreadyset_in_destructor()

def test_exceptions.test_python_alreadyset_in_destructor (   monkeypatch,
  capsys 
)

Definition at line 103 of file test_exceptions.py.

◆ test_python_call_in_catch()

def test_exceptions.test_python_call_in_catch ( )

Definition at line 86 of file test_exceptions.py.

◆ test_raise_from()

def test_exceptions.test_raise_from (   msg)

Definition at line 30 of file test_exceptions.py.

◆ test_raise_from_already_set()

def test_exceptions.test_raise_from_already_set (   msg)

Definition at line 37 of file test_exceptions.py.

◆ test_std_exception()

def test_exceptions.test_std_exception (   msg)

Definition at line 11 of file test_exceptions.py.

◆ test_throw_nested_exception()

def test_exceptions.test_throw_nested_exception ( )

Definition at line 243 of file test_exceptions.py.



gtsam
Author(s):
autogenerated on Tue Jun 25 2024 03:14:38