Classes | Functions
test_exceptions Namespace Reference

Classes

class  FlakyException
 

Functions

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_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_invalid_repr ()
 
def test_local_translator (msg)
 
def test_nested_throws (capture)
 
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

◆ ignore_pytest_unraisable_warning()

def test_exceptions.ignore_pytest_unraisable_warning (   f)

Definition at line 91 of file test_exceptions.py.

◆ test_cross_module_exception_translator()

def test_exceptions.test_cross_module_exception_translator ( )

Definition at line 79 of file test_exceptions.py.

◆ test_cross_module_exceptions()

def test_exceptions.test_cross_module_exceptions (   msg)

Definition at line 43 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 346 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 16 of file test_exceptions.py.

◆ test_error_already_set_double_restore()

def test_exceptions.test_error_already_set_double_restore ( )

Definition at line 355 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 300 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 307 of file test_exceptions.py.

◆ test_flaky_exception_failure_point_str()

def test_exceptions.test_flaky_exception_failure_point_str ( )

Definition at line 324 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_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 85 of file test_exceptions.py.

◆ test_raise_from()

def test_exceptions.test_raise_from (   msg)

Definition at line 29 of file test_exceptions.py.

◆ test_raise_from_already_set()

def test_exceptions.test_raise_from_already_set (   msg)

Definition at line 36 of file test_exceptions.py.

◆ test_std_exception()

def test_exceptions.test_std_exception (   msg)

Definition at line 10 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 Jul 4 2023 02:47:31