Title: bpo-29812: Improve testing of token and tokenize by ammaraskar · Pull Request #681 · python/cpython · GitHub
Open Graph Title: bpo-29812: Improve testing of token and tokenize by ammaraskar · Pull Request #681 · python/cpython
X Title: bpo-29812: Improve testing of token and tokenize by ammaraskar · Pull Request #681 · python/cpython
Description: Adds a token.py generation test, and a cross-check between the token and tokenize modules. The generation test is akin to the current automated file generator tests in test_keyword and test_symbol. The newly added check in tokenize ensures that all the literal tokens in token such as ':', '...', '@=' have a corresponding entry within the EXACT_TOKEN_TYPES dict in tokenize.
Open Graph Description: Adds a token.py generation test, and a cross-check between the token and tokenize modules. The generation test is akin to the current automated file generator tests in test_keyword and test_symbol....
X Description: Adds a token.py generation test, and a cross-check between the token and tokenize modules. The generation test is akin to the current automated file generator tests in test_keyword and test_symbol....
Opengraph URL: https://github.com/python/cpython/pull/681
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:972f8a09-61f5-3254-75e8-00b3484e47e5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8E36:2BD17B:3F10EBF:576B3C9:6A54D05A |
| html-safe-nonce | 5b4f7bcc520228a75dec6aced042df0330bcc7e44efceb6837cbac1768babef3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTM2OjJCRDE3QjozRjEwRUJGOjU3NkIzQzk6NkE1NEQwNUEiLCJ2aXNpdG9yX2lkIjoiOTU4MDI0Nzg1Mzc1NTgwMjUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4301c0acaa9dfc69beb0d729e4587d8bb388380a0ae736201edacfd7a635ad3f |
| hovercard-subject-tag | pull_request:110980756 |
| 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/681/files |
| twitter:image | https://avatars.githubusercontent.com/u/773529?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/773529?s=400&v=4 |
| og:image:alt | Adds a token.py generation test, and a cross-check between the token and tokenize modules. The generation test is akin to the current automated file generator tests in test_keyword and test_symbol.... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a556215b071af6609619e2bbe6f00bdfbf0812ad723b1ae6c301858a7a829f54 |
| 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 | 840b5d20d5a883c23cf56f5240b2c343d6cc0867 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width