Title: [2.7] bpo-31285: fix an assertion failure and a SystemError in warnings.warn_explicit (GH-3219) by orenmn · Pull Request #3805 · python/cpython · GitHub
Open Graph Title: [2.7] bpo-31285: fix an assertion failure and a SystemError in warnings.warn_explicit (GH-3219) by orenmn · Pull Request #3805 · python/cpython
X Title: [2.7] bpo-31285: fix an assertion failure and a SystemError in warnings.warn_explicit (GH-3219) by orenmn · Pull Request #3805 · python/cpython
Description: This is a backport of #3219 , but actually also a backport of #3803 , which is a cleanup after #3219 . Also, i removed the test that verifies that the assertion failure is no more, because in 2.7, the code assumes that the value returned by splitlines() is a string, and uses it without asserting it is a string, in such a way that causing some error (for testing purposes) is not simple (at least i didn't find a simple way). ISTM that the first test is good enough to verify that the splitlines() attribute is ignored, and PyUnicode_Splitlines() is used directly. https://bugs.python.org/issue31285
Open Graph Description: This is a backport of #3219 , but actually also a backport of #3803 , which is a cleanup after #3219 . Also, i removed the test that verifies that the assertion failure is no more, because in 2.7, ...
X Description: This is a backport of #3219 , but actually also a backport of #3803 , which is a cleanup after #3219 . Also, i removed the test that verifies that the assertion failure is no more, because in 2.7, ...
Opengraph URL: https://github.com/python/cpython/pull/3805
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ad2960f3-d533-65ae-6761-671abe7ce43a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A204:726BD:7CCC7E:AA78E7:6A507D22 |
| html-safe-nonce | 93ca0370ef3a09951913c1c66eebc99e852dda781dd5ee6ebd11f3170c7a504d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjA0OjcyNkJEOjdDQ0M3RTpBQTc4RTc6NkE1MDdEMjIiLCJ2aXNpdG9yX2lkIjoiNDk5Mjc0MDAwMjY1ODAyNDczOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3dfdab7edd1ad40d0d25aa259a903573f8d676217707d009a282cc3d2b84b82d |
| hovercard-subject-tag | pull_request:143685600 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/3805/files |
| twitter:image | https://avatars.githubusercontent.com/u/10146804?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10146804?s=400&v=4 |
| og:image:alt | This is a backport of #3219 , but actually also a backport of #3803 , which is a cleanup after #3219 . Also, i removed the test that verifies that the assertion failure is no more, because in 2.7, ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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