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_return_exception_void ()
 
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 335 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 354 of file test_exceptions.py.

◆ ignore_pytest_unraisable_warning()

def test_exceptions.ignore_pytest_unraisable_warning (   f)

Definition at line 94 of file test_exceptions.py.

◆ test_cross_module_exception_translator()

def test_exceptions.test_cross_module_exception_translator ( )

Definition at line 82 of file test_exceptions.py.

◆ test_cross_module_exceptions()

def test_exceptions.test_cross_module_exceptions (   msg)

Definition at line 46 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 397 of file test_exceptions.py.

◆ test_custom()

def test_exceptions.test_custom (   msg)

Definition at line 140 of file test_exceptions.py.

◆ test_error_already_set()

def test_exceptions.test_error_already_set (   msg)

Definition at line 19 of file test_exceptions.py.

◆ test_error_already_set_double_restore()

def test_exceptions.test_error_already_set_double_restore ( )

Definition at line 406 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 300 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 293 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 327 of file test_exceptions.py.

◆ test_exception_matches()

def test_exceptions.test_exception_matches ( )

Definition at line 134 of file test_exceptions.py.

◆ test_flaky_exception_failure_point_init()

def test_exceptions.test_flaky_exception_failure_point_init ( )

Definition at line 371 of file test_exceptions.py.

◆ test_flaky_exception_failure_point_str()

def test_exceptions.test_flaky_exception_failure_point_str ( )

Definition at line 378 of file test_exceptions.py.

◆ test_fn_cast_int_exception()

def test_exceptions.test_fn_cast_int_exception ( )

Definition at line 422 of file test_exceptions.py.

◆ test_invalid_repr()

def test_exceptions.test_invalid_repr ( )

Definition at line 266 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 275 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 203 of file test_exceptions.py.

◆ test_pypy_oserror_normalization()

def test_exceptions.test_pypy_oserror_normalization ( )

Definition at line 416 of file test_exceptions.py.

◆ test_python_alreadyset_in_destructor()

def test_exceptions.test_python_alreadyset_in_destructor (   monkeypatch,
  capsys 
)

Definition at line 105 of file test_exceptions.py.

◆ test_python_call_in_catch()

def test_exceptions.test_python_call_in_catch ( )

Definition at line 88 of file test_exceptions.py.

◆ test_raise_from()

def test_exceptions.test_raise_from (   msg)

Definition at line 32 of file test_exceptions.py.

◆ test_raise_from_already_set()

def test_exceptions.test_raise_from_already_set (   msg)

Definition at line 39 of file test_exceptions.py.

◆ test_return_exception_void()

def test_exceptions.test_return_exception_void ( )

Definition at line 431 of file test_exceptions.py.

◆ test_std_exception()

def test_exceptions.test_std_exception (   msg)

Definition at line 13 of file test_exceptions.py.

◆ test_throw_nested_exception()

def test_exceptions.test_throw_nested_exception ( )

Definition at line 258 of file test_exceptions.py.



gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:16:53