Title: exceptions.py tests failing on >= 3.7 because repr changed · Issue #1088 · RustPython/RustPython · GitHub
Open Graph Title: exceptions.py tests failing on >= 3.7 because repr changed · Issue #1088 · RustPython/RustPython
X Title: exceptions.py tests failing on >= 3.7 because repr changed · Issue #1088 · RustPython/RustPython
Description: CPython 3.7 changed exception’s repr implementation to get rid of a trailing comma: repr for BaseException has changed to not include the trailing comma. Most exceptions are affected by this change. (Contributed by Serhiy Storchaka in bp...
Open Graph Description: CPython 3.7 changed exception’s repr implementation to get rid of a trailing comma: repr for BaseException has changed to not include the trailing comma. Most exceptions are affected by this change...
X Description: CPython 3.7 changed exception’s repr implementation to get rid of a trailing comma: repr for BaseException has changed to not include the trailing comma. Most exceptions are affected by this change...
Opengraph URL: https://github.com/RustPython/RustPython/issues/1088
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"exceptions.py tests failing on \u003e= 3.7 because repr changed","articleBody":"CPython 3.7 [changed exception’s `repr`](https://docs.python.org/3.7/whatsnew/3.7.html) implementation to get rid of a trailing comma:\r\n\r\n\u003e `repr` for [`BaseException`](https://docs.python.org/3.7/library/exceptions.html#BaseException) has changed to not include the trailing comma. Most exceptions are affected by this change. (Contributed by Serhiy Storchaka in [bpo-30399](https://bugs.python.org/issue30399).)\r\n\r\nThis makes the test case from `exceptions.py` fail on CPython 3.7 and later.\r\n\r\nShould we get rid of the tests for repr, or perhaps just test substrings (that `repr` string contains both the type and the message)?","author":{"url":"https://github.com/silmeth","@type":"Person","name":"silmeth"},"datePublished":"2019-06-30T13:52:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1088/RustPython/issues/1088"}
| 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:658bd170-6d01-5c76-8a87-49591e3eddb3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D65C:11EA6:D4D326:133E46B:6A58D6A9 |
| html-safe-nonce | 35af2cd8eaae01dcfffa65bebf2f7c2296dd5b037acabff8fa078189b8cb6d78 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjVDOjExRUE2OkQ0RDMyNjoxMzNFNDZCOjZBNThENkE5IiwidmlzaXRvcl9pZCI6IjM3MDU5MDM1Njk1NDEwNjAyNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 90c4584a28d10a6675bd30d0a552a31a3682e677c9a5731fee6462c597f1131b |
| hovercard-subject-tag | issue:462407413 |
| 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/RustPython/RustPython/1088/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e94335096afcb84e05072afdfeb938ab3a3f1676eff235944da9b1d4e7bf3486/RustPython/RustPython/issues/1088 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e94335096afcb84e05072afdfeb938ab3a3f1676eff235944da9b1d4e7bf3486/RustPython/RustPython/issues/1088 |
| og:image:alt | CPython 3.7 changed exception’s repr implementation to get rid of a trailing comma: repr for BaseException has changed to not include the trailing comma. Most exceptions are affected by this change... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | silmeth |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width