Skip to content

[3.13] gh-156106: Add tests for setting and deleting attributes defined in C (GH-156107) - #156191

Merged
serhiy-storchaka merged 3 commits into
python:3.13from
serhiy-storchaka:backport-156106-3.13
Aug 21, 2026
Merged

[3.13] gh-156106: Add tests for setting and deleting attributes defined in C (GH-156107)#156191
serhiy-storchaka merged 3 commits into
python:3.13from
serhiy-storchaka:backport-156106-3.13

Conversation

@serhiy-storchaka

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

Copy link
Copy Markdown
Member

Manual backport of #156107 to 3.13.

The tests are adapted to this branch: the tests for _io.TextIOWrapper are in Lib/test/test_io.py, SyntaxError._metadata does not exist, and FileIO._blksize is writable.

The test for deleting frame.f_trace_opcodes is omitted, because it crashes here (gh-156189, #156190).

…d in C (pythonGH-156107)

Test setting a value of an accepted type, of a wrong type and an invalid
value, and deleting the attribute, for the attributes defined with
PyMemberDef and PyGetSetDef which were not covered.

(cherry picked from commit cdca502)
@serhiy-storchaka
serhiy-storchaka merged commit 8be8128 into python:3.13 Aug 21, 2026
41 checks passed
@serhiy-storchaka
serhiy-storchaka deleted the backport-156106-3.13 branch August 21, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant