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

Function toobig_message

tests/test_builtin_casters.py:54–55  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

52 """Tests failures for passing invalid inputs to char-accepting functions"""
53
54 def toobig_message(r):
55 return f"Character code point not in range({r:#x})"
56
57 toolong_message = "Expected a character, but multi-character string found"
58

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected