Title: Move test files into test subdirectories · Issue #108303 · python/cpython · GitHub
Open Graph Title: Move test files into test subdirectories · Issue #108303 · python/cpython
X Title: Move test files into test subdirectories · Issue #108303 · python/cpython
Description: Feature or enhancement Proposal: The Python test suite has around 166 files and sub-directories where the name is not clearly associated to a test. For example, it's not obvious to me which test uses talos-2019-0758.pem or coding20731.py...
Open Graph Description: Feature or enhancement Proposal: The Python test suite has around 166 files and sub-directories where the name is not clearly associated to a test. For example, it's not obvious to me which test us...
X Description: Feature or enhancement Proposal: The Python test suite has around 166 files and sub-directories where the name is not clearly associated to a test. For example, it's not obvious to me which tes...
Opengraph URL: https://github.com/python/cpython/issues/108303
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Move test files into test subdirectories","articleBody":"# Feature or enhancement\r\n\r\n### Proposal:\r\n\r\nThe Python test suite has around 166 files and sub-directories where the name is not clearly associated to a test. For example, it's not obvious to me which test uses ``talos-2019-0758.pem`` or ``coding20731.py``.\r\n\r\nWhen possible, I propose to move these files into sub-directories related to their test. Example:\r\n\r\n* create ``Lib/test/test_module/`` sub-directory\r\n* move ``Lib/test/test_module.py`` to ``Lib/test/test_module/__init__.py``\r\n* move ``good_getattr.py`` and ``bad_getattr*.py`` scripts to ``Lib/test/test_module/``\r\n\r\nWell, I created PR #108293 for this specific example.\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-108305\r\n* gh-108325\r\n* gh-108328\r\n* gh-108336\r\n* gh-108354\r\n* gh-108978\r\n* gh-108979\r\n* gh-109265\r\n* gh-109314\r\n* gh-109368\r\n* gh-109489\r\n* gh-109512\r\n* gh-109513\r\n* gh-109607\r\n* gh-109670\n* gh-109671\n* gh-109672\n* gh-109673\n* gh-109674\n* gh-109675\n* gh-109677\n* gh-109678\n* gh-109679\n* gh-109680\n* gh-109682\n* gh-109683\n* gh-109686\n* gh-109724\n* gh-110646\n* gh-110732\n* gh-111543\n* gh-111549\n* gh-111825\n* gh-111859\n* gh-111860\n* gh-111879\n* gh-111880\n* gh-111882\n* gh-111883\n* gh-111891\n* gh-111892\n* gh-111899\n* gh-111945\n* gh-111946\n* gh-112108\n* gh-112109\n* gh-112110\n* gh-112114\n* gh-112976\n* gh-112977\n* gh-114254\n* gh-114313\n* gh-114343\n* gh-114344\n* gh-114356\n* gh-114368\n* gh-114372\n* gh-114427\n* gh-114433\n* gh-114488\n* gh-114506\n* gh-114687\n* gh-115501\n* gh-115502\n* gh-115625\n* gh-115626\n* gh-130540\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2023-08-22T14:51:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":18},"url":"https://github.com/108303/cpython/issues/108303"}
| 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:97c0c72a-22e7-52ad-0a99-19c24325a91b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D90A:333370:1B6C9DB:2648CCE:696A57B3 |
| html-safe-nonce | 98615fcbc7633f2f36cdbb6e3809c9aed74e8c94fcf606da53720ebdfa2df668 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTBBOjMzMzM3MDoxQjZDOURCOjI2NDhDQ0U6Njk2QTU3QjMiLCJ2aXNpdG9yX2lkIjoiMzQ1ODAxMTQ4MzI2ODA3NzQ5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 45c88a14e55e275f6bb9fab3950c1e292d9d5f2af8230457aa7489ad51da7f6b |
| hovercard-subject-tag | issue:1861639456 |
| 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/108303/issue_layout |
| twitter:image | https://opengraph.githubassets.com/53b97ffaf4bf714800d5151d2a80593e6a93c254b4f28569aa51f4bd3d086b5d/python/cpython/issues/108303 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/53b97ffaf4bf714800d5151d2a80593e6a93c254b4f28569aa51f4bd3d086b5d/python/cpython/issues/108303 |
| og:image:alt | Feature or enhancement Proposal: The Python test suite has around 166 files and sub-directories where the name is not clearly associated to a test. For example, it's not obvious to me which test us... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width