Title: Fix commented out part of test_body_encode in test_email · Issue #149916 · python/cpython · GitHub
Open Graph Title: Fix commented out part of test_body_encode in test_email · Issue #149916 · python/cpython
X Title: Fix commented out part of test_body_encode in test_email · Issue #149916 · python/cpython
Description: It was commented out in bef9d21. The test was broken because: Charset.body_encode() now only takes one argument (see 9604e66). The argument of Charset.body_encode() must be Unicode string for encoding taking place. The test used a 8-bit ...
Open Graph Description: It was commented out in bef9d21. The test was broken because: Charset.body_encode() now only takes one argument (see 9604e66). The argument of Charset.body_encode() must be Unicode string for encod...
X Description: It was commented out in bef9d21. The test was broken because: Charset.body_encode() now only takes one argument (see 9604e66). The argument of Charset.body_encode() must be Unicode string for encod...
Opengraph URL: https://github.com/python/cpython/issues/149916
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix commented out part of test_body_encode in test_email","articleBody":"It was commented out in bef9d21d14722bc43fa2161ae55088d152d42ff8. The test was broken because:\n\n* `Charset.body_encode()` now only takes one argument (see 9604e66660bfe5066a88e3eb560a5846c620e8de).\n* The argument of `Charset.body_encode()` must be Unicode string for encoding taking place. The test used a 8-bit string in Python 2.\n\nSo the test can only be restored partially, but it was the only test with different input and output codecs, so it is better to enable it.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-149917\n* gh-149937\n* gh-149938\n* gh-149939\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2026-05-16T10:00:03Z","url":"https://github.com/python/cpython/issues/149916"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:b181c013-0e95-e7e4-8fb3-07c57015280d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CAE6:A70A9:13FA576:1A71307:6B01F39F |
| html-safe-nonce | ceb3ffa3e11be73848d543a5ce520b2dfa36423dc608765b56bb5c21ae9c445d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUU2OkE3MEE5OjEzRkE1NzY6MUE3MTMwNzo2QjAxRjM5RiIsInZpc2l0b3JfaWQiOiI0MTI1OTI3ODk5MTA0NjcwNjIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dcb01878f2c0ba3ab8d9dca82866dba4fbab5c416c40bbf81bfcf764cb132070 |
| hovercard-subject-tag | issue:4459504500 |
| 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/149916/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cc7fc1041784055587c84fee4d198c4d37608e54d48f5a603ccd4652a7e102fb/python/cpython/issues/149916 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cc7fc1041784055587c84fee4d198c4d37608e54d48f5a603ccd4652a7e102fb/python/cpython/issues/149916 |
| og:image:alt | It was commented out in bef9d21. The test was broken because: Charset.body_encode() now only takes one argument (see 9604e66). The argument of Charset.body_encode() must be Unicode string for encod... |
| 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 | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width