Closed
8 / 88 of 8 issues completedClosed
8 / 88 of 8 issues completed
Copy link
Labels
testsTests in the Lib/test dir
Description
CPython defines 375 attributes with PyMemberDef and PyGetSetDef (excluding the _test* modules), but the test suite never assigns to 187 of them and never deletes 332 of them.
Deletion in particular is almost untested, although it is a separate code path: the setter is called with NULL, and an implementation which does not expect this crashes or leaves the object in a broken state.
Three bugs found this way are gh-156099, gh-156100 and gh-156101; gh-152817 is another one.
The following PR adds writing and deleting tests for each writable attribute.
Linked PRs
- gh-156106: Add tests for setting and deleting attributes defined in C #156107
- [3.14] gh-156106: Add tests for setting and deleting attributes defined in C (GH-156107) #156184
- [3.13] gh-156106: Add tests for setting and deleting attributes defined in C (GH-156107) #156191
- [3.15] gh-156106: Add tests for setting and deleting attributes defined in C (GH-156107) #159086
Sub-issues
Collapse Sub-issuesSub-issues
Loading 8 sub-issues
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dir
Activity
row_factoryattr of sqlite3cursor#152817gh-156106: Add tests for setting and deleting attributes defined in C (…
[3.14] gh-156106: Add tests for setting and deleting attributes defin…
[3.13] gh-156106: Add tests for setting and deleting attributes defin…
[3.15] gh-156106: Add tests for setting and deleting attributes defin…