| 125 | |
| 126 | @skip_pypy3 |
| 127 | def test_inspect_empty_dict(): |
| 128 | expected = ( |
| 129 | "╭──────────────── <class 'dict'> ────────────────╮\n" |
| 130 | "│ dict() -> new empty dictionary │\n" |
| 131 | "│ dict(mapping) -> new dictionary initialized │\n" |
| 132 | "│ from a mapping object's │\n" |
| 133 | "│ (key, value) pairs │\n" |
| 134 | "│ dict(iterable) -> new dictionary initialized │\n" |
| 135 | "│ as if via: │\n" |
| 136 | "│ d = {} │\n" |
| 137 | "│ for k, v in iterable: │\n" |
| 138 | "│ d[k] = v │\n" |
| 139 | "│ dict(**kwargs) -> new dictionary initialized │\n" |
| 140 | "│ with the name=value pairs │\n" |
| 141 | "│ in the keyword argument list. For │\n" |
| 142 | "│ example: dict(one=1, two=2) │\n" |
| 143 | "│ │\n" |
| 144 | ) |
| 145 | assert render({}).startswith(expected) |
| 146 | |
| 147 | |
| 148 | @skip_py314 |