()
| 226 | |
| 227 | |
| 228 | def test_info_wide(): |
| 229 | io = StringIO() |
| 230 | df = DataFrame(np.random.default_rng(2).standard_normal((5, 101))) |
| 231 | df.info(buf=io) |
| 232 | |
| 233 | io = StringIO() |
| 234 | df.info(buf=io, max_cols=101) |
| 235 | result = io.getvalue() |
| 236 | assert len(result.splitlines()) > 100 |
| 237 | |
| 238 | expected = result |
| 239 | with option_context("display.max_info_columns", 101): |
| 240 | io = StringIO() |
| 241 | df.info(buf=io) |
| 242 | result = io.getvalue() |
| 243 | assert result == expected |
| 244 | |
| 245 | |
| 246 | def test_info_duplicate_columns_shows_correct_dtypes(): |
nothing calls this directly
no test coverage detected