MCPcopy
hub / github.com/Textualize/rich / test_inspect_builtin_function_except_python311

Function test_inspect_builtin_function_except_python311

tests/test_inspect.py:153–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151@skip_py311
152@skip_pypy3
153def test_inspect_builtin_function_except_python311():
154 # Pre-3.11 Python versions - print builtin has no signature available
155 expected = (
156 "╭────────── <built-in function print> ───────────╮\n"
157 "│ def print(...) │\n"
158 "│ │\n"
159 "│ print(value, ..., sep=' ', end='\\n', │\n"
160 "│ file=sys.stdout, flush=False) │\n"
161 "│ │\n"
162 "│ 29 attribute(s) not shown. Run │\n"
163 "│ inspect(inspect) for options. │\n"
164 "╰────────────────────────────────────────────────╯\n"
165 )
166 assert render(print) == expected
167
168
169@pytest.mark.skipif(

Callers

nothing calls this directly

Calls 1

renderFunction · 0.70

Tested by

no test coverage detected