MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_pformat_dispatch

Function test_pformat_dispatch

testing/io/test_saferepr.py:161–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159
160
161def test_pformat_dispatch():
162 assert _pformat_dispatch("a") == "'a'"
163 assert _pformat_dispatch("a" * 10, width=5) == "'aaaaaaaaaa'"
164 assert _pformat_dispatch("foo bar", width=5) == "('foo '\n 'bar')"
165
166
167def test_broken_getattribute():

Callers

nothing calls this directly

Calls 1

_pformat_dispatchFunction · 0.90

Tested by

no test coverage detected