Title: Add more tests for UserList, UserDict, etc · Issue #145144 · python/cpython · GitHub
Open Graph Title: Add more tests for UserList, UserDict, etc · Issue #145144 · python/cpython
X Title: Add more tests for UserList, UserDict, etc · Issue #145144 · python/cpython
Description: It seems that some code in UserList, UserDict and UserString is not covered by tests. Some of existing tests are too lenient -- they tests the value of the result, but not its type. Some tests do not test particular combination of argume...
Open Graph Description: It seems that some code in UserList, UserDict and UserString is not covered by tests. Some of existing tests are too lenient -- they tests the value of the result, but not its type. Some tests do n...
X Description: It seems that some code in UserList, UserDict and UserString is not covered by tests. Some of existing tests are too lenient -- they tests the value of the result, but not its type. Some tests do n...
Opengraph URL: https://github.com/python/cpython/issues/145144
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add more tests for UserList, UserDict, etc","articleBody":"It seems that some code in UserList, UserDict and UserString is not covered by tests. Some of existing tests are too lenient -- they tests the value of the result, but not its type. Some tests do not test particular combination of argument types. For some methods tests are absent at all. And some code is a pure optimization -- when remove it, the generic slower implementation is used. It is not always possible to test this.\n\nThe following PR adds more tests for UserList, UserDict and UserString. Some tests are added to generic tests, so new tests are also added for str, bytes, bytearray, list, tuple, deque, etc.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-145145\n* gh-146290\n* gh-146296\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2026-02-23T14:50:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/145144/cpython/issues/145144"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5d7edf90-d5c6-e671-87de-4736bc645ffc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C49E:2E11B4:2E58E0:3DD4C2:6A507488 |
| html-safe-nonce | 36b8990614a06a09c1c597444c17496f352440d7732f793c4af994176aaf08dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDlFOjJFMTFCNDoyRTU4RTA6M0RENEMyOjZBNTA3NDg4IiwidmlzaXRvcl9pZCI6Ijc1NzQ4ODg2NTYxMzkyMjAxMDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 824fd0dd3c5d5483c24080e2e833cabc6aca87aa0523d8a1a66b7e5da512592b |
| hovercard-subject-tag | issue:3978581291 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/145144/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e68fe1bcfc1a852fd15c04f20c8ab39381cf8fa03ac7a37a5e39dc7cab08595a/python/cpython/issues/145144 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e68fe1bcfc1a852fd15c04f20c8ab39381cf8fa03ac7a37a5e39dc7cab08595a/python/cpython/issues/145144 |
| og:image:alt | It seems that some code in UserList, UserDict and UserString is not covered by tests. Some of existing tests are too lenient -- they tests the value of the result, but not its type. Some tests do n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width