| 151 | @skip_py311 |
| 152 | @skip_pypy3 |
| 153 | def 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( |