cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Functions
test_exceptions Namespace Reference

Functions

def test_std_exception (msg)
 
def test_error_already_set (msg)
 
def test_cross_module_exceptions ()
 
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_invalid_repr ()
 

Function Documentation

◆ ignore_pytest_unraisable_warning()

def test_exceptions.ignore_pytest_unraisable_warning (   f)

Definition at line 53 of file test_exceptions.py.

◆ test_cross_module_exceptions()

def test_exceptions.test_cross_module_exceptions ( )

Definition at line 26 of file test_exceptions.py.

◆ test_custom()

def test_exceptions.test_custom (   msg)

Definition at line 97 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_exception_matches()

def test_exceptions.test_exception_matches ( )

Definition at line 91 of file test_exceptions.py.

◆ test_invalid_repr()

def test_exceptions.test_invalid_repr ( )

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

◆ test_python_alreadyset_in_destructor()

def test_exceptions.test_python_alreadyset_in_destructor (   monkeypatch,
  capsys 
)

Definition at line 63 of file test_exceptions.py.

◆ test_python_call_in_catch()

def test_exceptions.test_python_call_in_catch ( )

Definition at line 47 of file test_exceptions.py.

◆ test_std_exception()

def test_exceptions.test_std_exception (   msg)

Definition at line 10 of file test_exceptions.py.