MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_exception_specifiers

Function test_exception_specifiers

tests/test_constants_and_functions.py:29–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28
29def test_exception_specifiers():
30 c = m.C()
31 assert c.m1(2) == 1
32 assert c.m2(3) == 1
33 assert c.m3(5) == 2
34 assert c.m4(7) == 3
35 assert c.m5(10) == 5
36 assert c.m6(14) == 8
37 assert c.m7(20) == 13
38 assert c.m8(29) == 21
39
40 assert m.f1(33) == 34
41 assert m.f2(53) == 55
42 assert m.f3(86) == 89
43 assert m.f4(140) == 144
44
45
46def test_function_record_leaks():

Callers

nothing calls this directly

Calls 1

CMethod · 0.80

Tested by

no test coverage detected