You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_curses regression in 3.16.0a1: test_newterm fails on a real terminal that's not 80x25 #159394
The test seems to be written with the wrong assumption that curses will always evaluate the terminal size to 80x25, which fails when tests are run on a real terminal rather than GHA:
======================================================================
FAIL: test_newterm (test.test_curses.ScreenTests.test_newterm)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-lang/python-3.16.0_alpha1/work/Python-3.16.0a1/Lib/test/test_curses.py", line 3336, in test_newtermself.assertEqual(win.getmaxyx(), (24, 80))
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^AssertionError: Tuples differ: (24, 135) != (24, 80)
First differing element 1:
135
80
- (24, 135)
+ (24, 80)
----------------------------------------------------------------------
Ran 189 tests in 4.068s
FAILED (failures=1, skipped=4)
Activity