Skip to content

[3.14] gh-155974: Add a test for the window attributes after a failed write - #156565

Open
serhiy-storchaka wants to merge 1 commit into
python:3.14from
serhiy-storchaka:guard-155974-3.14
Open

[3.14] gh-155974: Add a test for the window attributes after a failed write#156565
serhiy-storchaka wants to merge 1 commit into
python:3.14from
serhiy-storchaka:guard-155974-3.14

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 29, 2026

Copy link
Copy Markdown
Member

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(), since window.getattrs() is 3.16 only.

…write

The bug was introduced and fixed in 3.15, but the behaviour is worth
guarding here too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant