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

Function msg

tests/conftest.py:200–202  ·  view source on GitHub ↗

Sanitize messages and add custom failure explanation

()

Source from the content-addressed store, hash-verified

198
199@pytest.fixture
200def msg():
201 """Sanitize messages and add custom failure explanation"""
202 return SanitizedString(_sanitize_message)
203
204
205def pytest_assertrepr_compare(op, left, right): # noqa: ARG001

Callers 15

test_keyword_only_argsFunction · 0.85
test_bad_arg_defaultFunction · 0.85
test_accepts_noneFunction · 0.85
test_str_issueFunction · 0.85
test_overload_resolutionFunction · 0.85
test_reallocation_aFunction · 0.85
test_reallocation_bFunction · 0.85

Calls 1

SanitizedStringClass · 0.85

Tested by

no test coverage detected