Title: Add more tests for pickle and fix error messages · Issue #122311 · python/cpython · GitHub
Open Graph Title: Add more tests for pickle and fix error messages · Issue #122311 · python/cpython
X Title: Add more tests for pickle and fix error messages · Issue #122311 · python/cpython
Description: Bug report Much error generating code in the pickle module is not tested at all. As result, not only exception types and messages can differ between Python and C implementations, but other bugs are left unnoticed: NameError in formatting...
Open Graph Description: Bug report Much error generating code in the pickle module is not tested at all. As result, not only exception types and messages can differ between Python and C implementations, but other bugs are...
X Description: Bug report Much error generating code in the pickle module is not tested at all. As result, not only exception types and messages can differ between Python and C implementations, but other bugs are...
Opengraph URL: https://github.com/python/cpython/issues/122311
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add more tests for pickle and fix error messages","articleBody":"# Bug report\n\nMuch error generating code in the `pickle` module is not tested at all. As result, not only exception types and messages can differ between Python and C implementations, but other bugs are left unnoticed:\n\n* NameError in formatting one of error messages.\n* \"Can't pickle\" in the error message during unpickling.\n* Error message including the repr of wrong object.\n* Some errors are only detected in one of implementations (Python or C).\n* Crash in untested corner case (#122306).\n\nI am going to add more tests and fix the most odious errors. This will be backported to 3.12 and 3.13, but the backport to 3.12 will have more lenient variants of tests. Late, I will unify and improve other error messages (this is for main only).\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-122312\n* gh-122314\n* gh-122315\n* gh-122373\n* gh-122376\n* gh-122377\n* gh-122378\n* gh-122386\n* gh-122387\n* gh-122388\n* gh-122411\n* gh-122415\n* gh-122416\n* gh-122771\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2024-07-26T14:18:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/122311/cpython/issues/122311"}
| 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:85510c78-409f-ce18-5572-8e532003d219 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 93EE:28AF9F:1659D8B:205EA7C:6A54CEEE |
| html-safe-nonce | 0dfcafeccc499d75c52c1c242b4e3217d6bc11d8ac7e002aa06a8a83f7870d7d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0VFOjI4QUY5RjoxNjU5RDhCOjIwNUVBN0M6NkE1NENFRUUiLCJ2aXNpdG9yX2lkIjoiNDE0NDUzMzc3MDQzNDAzOTUzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 09d0f5b569ef5e40db037be8112ccfd76bb1404d70ed6ef4f1c92cccb6e9c711 |
| hovercard-subject-tag | issue:2432346958 |
| 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/122311/issue_layout |
| twitter:image | https://opengraph.githubassets.com/05616bc73effd319f5f5813005e7d29376c6f0e7637bb8d1c4332555fea7372b/python/cpython/issues/122311 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/05616bc73effd319f5f5813005e7d29376c6f0e7637bb8d1c4332555fea7372b/python/cpython/issues/122311 |
| og:image:alt | Bug report Much error generating code in the pickle module is not tested at all. As result, not only exception types and messages can differ between Python and C implementations, but other bugs are... |
| 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 | a556215b071af6609619e2bbe6f00bdfbf0812ad723b1ae6c301858a7a829f54 |
| 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 | 840b5d20d5a883c23cf56f5240b2c343d6cc0867 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width