| 108 | |
| 109 | @skip_pypy3 |
| 110 | def test_inspect_text(): |
| 111 | num_attributes = 34 if sys.version_info >= (3, 11) else 33 |
| 112 | expected = ( |
| 113 | "╭──────────────── <class 'str'> ─────────────────╮\n" |
| 114 | "│ str(object='') -> str │\n" |
| 115 | "│ str(bytes_or_buffer[, encoding[, errors]]) -> │\n" |
| 116 | "│ str │\n" |
| 117 | "│ │\n" |
| 118 | f"│ {num_attributes} attribute(s) not shown. Run │\n" |
| 119 | "│ inspect(inspect) for options. │\n" |
| 120 | "╰────────────────────────────────────────────────╯\n" |
| 121 | ) |
| 122 | print(repr(expected)) |
| 123 | assert render("Hello") == expected |
| 124 | |
| 125 | |
| 126 | @skip_pypy3 |