Commit 6fe52b3
committed
Fix list-table width test breaking pytest reporting
The width test replaced the global shutil.get_terminal_size with a
no-argument lambda, so pytest's own get_terminal_size(fallback=...)
call during progress reporting raised TypeError and aborted the run
with an INTERNALERROR.
Extract a _list_table_width() helper and test it directly with a
signature-compatible stub, so the cap logic is verified without
disturbing pytest's terminal-size lookups.1 parent af9fb48 commit 6fe52b3
2 files changed
Lines changed: 13 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
948 | 953 | | |
949 | 954 | | |
950 | 955 | | |
| |||
989 | 994 | | |
990 | 995 | | |
991 | 996 | | |
992 | | - | |
| 997 | + | |
993 | 998 | | |
994 | 999 | | |
995 | 1000 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
| 359 | + | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
364 | | - | |
| 362 | + | |
| 363 | + | |
365 | 364 | | |
366 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
367 | 368 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
| 369 | + | |
374 | 370 | | |
375 | 371 | | |
376 | 372 | | |
| |||
0 commit comments