Skip to content

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

Open
serhiy-storchaka wants to merge 1 commit into
python:3.13from
serhiy-storchaka:backport-156106-3.13
Open

[3.13] gh-156106: Add tests for setting and deleting attributes defined in C (GH-156107)#156191
serhiy-storchaka wants to merge 1 commit 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant