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

Function test_error_after_conversions

tests/test_class.py:446–451  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

444
445
446def test_error_after_conversions():
447 with pytest.raises(TypeError) as exc_info:
448 m.test_error_after_conversions("hello")
449 assert str(exc_info.value).startswith(
450 "Unable to convert function return value to a Python type!"
451 )
452
453
454def test_aligned():

Callers

nothing calls this directly

Calls 1

strClass · 0.85

Tested by

no test coverage detected