[3.13] gh-155974: Add a test for the window attributes after a failed write - #156566
Conversation
…write The bug was introduced and fixed in 3.15, but the behaviour is worth guarding here too.
|
|
|
…write The bug was introduced and fixed in 3.15, but the behaviour is worth guarding here too.
|
|
|
A write with an attr restores the window rendition afterwards, whether it succeeded or failed. This branch does the right thing already -- the regression fixed by #155975 was introduced in 3.15 by 30dde1e, which is not here -- so this only adds the test as a guard.
The test reads the rendition by writing a cell with it and reading that cell back with
inch(), sincewindow.getattrs()is 3.16 only.addstrno longer restores the window attributes when the write fails #155974