Skip to content

gh-156106: Add tests for setting and deleting attributes defined in C - #156107

Open
serhiy-storchaka wants to merge 4 commits into
python:mainfrom
serhiy-storchaka:c-attribute-mutation-tests
Open

gh-156106: Add tests for setting and deleting attributes defined in C#156107
serhiy-storchaka wants to merge 4 commits into
python:mainfrom
serhiy-storchaka:c-attribute-mutation-tests

Conversation

@serhiy-storchaka

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

Copy link
Copy Markdown
Member

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

They are added to the existing tests of the corresponding attributes where such tests exist.

Covered: the plain object members of exceptions, function.__code__, __doc__ and __kwdefaults__, frame.f_trace, f_trace_lines and f_trace_opcodes, the attributes of _ssl._SSLContext and _ssl._SSLSocket, sqlite3 isolation_level, arraysize and autocommit, ctypes raw, contents, argtypes, restype and errcheck, the C Pickler and Unpickler attributes, _io _blksize, _finalizing and _CHUNK_SIZE, the private attributes of decimal.Context, defaultdict.default_factory, Future._cancel_message and the members of select.kevent.

…d in C

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.
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