René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:97c0c72a-22e7-52ad-0a99-19c24325a91b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD90A:333370:1B6C9DB:2648CCE:696A57B3
html-safe-nonce98615fcbc7633f2f36cdbb6e3809c9aed74e8c94fcf606da53720ebdfa2df668
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTBBOjMzMzM3MDoxQjZDOURCOjI2NDhDQ0U6Njk2QTU3QjMiLCJ2aXNpdG9yX2lkIjoiMzQ1ODAxMTQ4MzI2ODA3NzQ5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac45c88a14e55e275f6bb9fab3950c1e292d9d5f2af8230457aa7489ad51da7f6b
hovercard-subject-tagissue:1861639456
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/108303/issue_layout
twitter:imagehttps://opengraph.githubassets.com/53b97ffaf4bf714800d5151d2a80593e6a93c254b4f28569aa51f4bd3d086b5d/python/cpython/issues/108303
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/53b97ffaf4bf714800d5151d2a80593e6a93c254b4f28569aa51f4bd3d086b5d/python/cpython/issues/108303
og:image:altFeature 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
hostnamegithub.com
expected-hostnamegithub.com
None3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release63c426b30d262aba269ef14c40e3c817b384cd61
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/108303#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F108303
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F108303
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/108303
Reloadhttps://github.com/python/cpython/issues/108303
Reloadhttps://github.com/python/cpython/issues/108303
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/108303
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/issues/108303
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/108303
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/108303
Move test files into test subdirectorieshttps://github.com/python/cpython/issues/108303#top
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/vstinner
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Aug 22, 2023https://github.com/python/cpython/issues/108303#issue-1861639456
#108293https://github.com/python/cpython/pull/108293
gh-108303: Remove unused Lib/test/sgml_input.html #108305https://github.com/python/cpython/pull/108305
gh-108303: Add Lib/test/test_cppext/ sub-directory #108325https://github.com/python/cpython/pull/108325
[3.12] gh-108303: Add Lib/test/test_cppext/ sub-directory (GH-108325) #108328https://github.com/python/cpython/pull/108328
[3.11] gh-108303: Add Lib/test/test_cppext/ sub-directory (#108325) #108336https://github.com/python/cpython/pull/108336
gh-108303: Move ann_module*.py files to typinganndata/ folder #108354https://github.com/python/cpython/pull/108354
gh-108303: Create Lib/test/test_dataclasses/ directory #108978https://github.com/python/cpython/pull/108978
gh-108303: Create Lib/test/test_dataclasses/ directory #108979https://github.com/python/cpython/pull/108979
gh-108303: Move tokenize-related data to Lib/test/tokenizedata #109265https://github.com/python/cpython/pull/109265
gh-108303: Add Lib/test/tokenizedata to TESTSUBDIRS #109314https://github.com/python/cpython/pull/109314
gh-108303: Move test_future into its own subdir #109368https://github.com/python/cpython/pull/109368
gh-108303: Move all certificates to Lib/test/certdata/ #109489https://github.com/python/cpython/pull/109489
gh-108303: Move all math files to Lib/test/mathdata/ #109512https://github.com/python/cpython/pull/109512
gh-108303: Fix and move badsyntax_pep3120.py #109513https://github.com/python/cpython/pull/109513
gh-108303: Move all inspect test files to test_inspect/ #109607https://github.com/python/cpython/pull/109607
[3.11] gh-108303: Remove unused Lib/test/sgml_input.html (GH-108305) #109670https://github.com/python/cpython/pull/109670
[3.12] gh-108303: Remove unused Lib/test/sgml_input.html (GH-108305) #109671https://github.com/python/cpython/pull/109671
[3.12] gh-108303: Move ann_module*.py files to typinganndata/ folder (GH-108354) #109672https://github.com/python/cpython/pull/109672
[3.11] gh-108303: Move ann_module*.py files to typinganndata/ folder (#108354) #109673https://github.com/python/cpython/pull/109673
[3.12] gh-108303: Create Lib/test/test_dataclasses/ directory (GH-108978) #109674https://github.com/python/cpython/pull/109674
[3.11] gh-108303: Create Lib/test/test_dataclasses/ directory (#108978) #109675https://github.com/python/cpython/pull/109675
[3.12] gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265) #109677https://github.com/python/cpython/pull/109677
[3.11] gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265) #109678https://github.com/python/cpython/pull/109678
[3.12] gh-108303: Move test_future into its own test_future_stmt subdir (#109368) #109679https://github.com/python/cpython/pull/109679
[3.11] gh-108303: Move test_future into its own test_future_stmt subdir (#109368) #109680https://github.com/python/cpython/pull/109680
[3.12] gh-108303: Move all certificates to Lib/test/certdata/ (GH-109489) #109682https://github.com/python/cpython/pull/109682
[3.11] gh-108303: Move all certificates to Lib/test/certdata/ (GH-109489) #109683https://github.com/python/cpython/pull/109683
gh-108303: Update test_fractions for new Lib/test/mathdata/ #109686https://github.com/python/cpython/pull/109686
[3.11] gh-108303: Fix and move badsyntax_pep3120.py (GH-109513) #109724https://github.com/python/cpython/pull/109724
[3.11] [3.12] gh-108303: Move all certificates to Lib/test/certdata/ (GH-109489) (GH-109682) #110646https://github.com/python/cpython/pull/110646
[3.12] gh-108303: Move all inspect test files to test_inspect/ (GH-109607) #110732https://github.com/python/cpython/pull/110732
[3.11] gh-108303: Move all inspect test files to test_inspect/ (GH-109607) #111543https://github.com/python/cpython/pull/111543
gh-108303: Move zip and tar archives to Lib/test/archivetestdata #111549https://github.com/python/cpython/pull/111549
gh-108303: Move more typing related files to Lib/test/typinganndata #111825https://github.com/python/cpython/pull/111825
[3.12] gh-108303: Move more typing related files to Lib/test/typinganndata (GH-111825) #111859https://github.com/python/cpython/pull/111859
[3.11] gh-108303: Move more typing related files to Lib/test/typinganndata (GH-111825) #111860https://github.com/python/cpython/pull/111860
gh-108303: Move config parser data to Lib/test/configparserdata/ #111879https://github.com/python/cpython/pull/111879
gh-108303: Move more files to Lib/test/test_module #111880https://github.com/python/cpython/pull/111880
[3.12] gh-108303: Move config parser data to Lib/test/configparserdata/ (gh-111879) #111882https://github.com/python/cpython/pull/111882
[3.11] gh-108303: Move config parser data to Lib/test/configparserdata/ (gh-111879) #111883https://github.com/python/cpython/pull/111883
[3.12] gh-108303: Move more files to Lib/test/test_module (GH-111880) #111891https://github.com/python/cpython/pull/111891
[3.11] gh-108303: Move more files to Lib/test/test_module (GH-111880) #111892https://github.com/python/cpython/pull/111892
gh-108303: Install Lib/test/configdata #111899https://github.com/python/cpython/pull/111899
[3.11] gh-108303: Install Lib/test/configdata (GH-111899) #111945https://github.com/python/cpython/pull/111945
[3.12] gh-108303: Install Lib/test/configdata (GH-111899) #111946https://github.com/python/cpython/pull/111946
gh-108303: Move double_const to test_import where it belongs #112108https://github.com/python/cpython/pull/112108
gh-108303: Move all doctest related files and tests to Lib/test/test_doctest/ #112109https://github.com/python/cpython/pull/112109
gh-108303: Delete imp_dummy test file #112110https://github.com/python/cpython/pull/112110
[3.12] gh-108303: Delete imp_dummy test file (GH-112110) #112114https://github.com/python/cpython/pull/112114
[3.12] gh-108303: Move double_const to test_import where it belongs (GH-112108) #112976https://github.com/python/cpython/pull/112976
[3.11] gh-108303: Move double_const to test_import where it belongs (GH-112108) #112977https://github.com/python/cpython/pull/112977
[3.12] gh-108303: Move all doctest related files and tests to Lib/test/test_doctest/ (GH-112109) #114254https://github.com/python/cpython/pull/114254
[3.11] gh-108303: Move all doctest related files and tests to Lib/test/test_doctest/ (GH-112109) #114313https://github.com/python/cpython/pull/114313
gh-108303: Move .whl test files to Lib/test/whldata/ #114343https://github.com/python/cpython/pull/114343
gh-108303: Move all XML-related test files to test_xml #114344https://github.com/python/cpython/pull/114344
gh-108303: Remove the non-test Lib/test/reperf.py #114356https://github.com/python/cpython/pull/114356
gh-108303: Move smtpd to test.support #114368https://github.com/python/cpython/pull/114368
gh-108303: Remove Lib/test/shadowed_super.py #114372https://github.com/python/cpython/pull/114372
[3.12] gh-108303: Move smtpd to test.support (GH-114368) #114427https://github.com/python/cpython/pull/114427
[3.12] gh-108303: Remove Lib/test/shadowed_super.py (GH-114372) #114433https://github.com/python/cpython/pull/114433
[3.12] gh-108303: Move .whl test files to Lib/test/wheeldata/ (GH-114343) #114488https://github.com/python/cpython/pull/114488
gh-108303: Move all pydoc related files to test_pydoc #114506https://github.com/python/cpython/pull/114506
gh-108303: Move Lib/test/sortperf.py to Tools/scripts #114687https://github.com/python/cpython/pull/114687
[3.11] gh-108303: Move all pydoc related files to test_pydoc (GH-114506) #115501https://github.com/python/cpython/pull/115501
[3.12] gh-108303: Move all pydoc related files to test_pydoc (GH-114506) #115502https://github.com/python/cpython/pull/115502
[3.12] gh-108303: Move Lib/test/sortperf.py to Tools/scripts (GH-114687) #115625https://github.com/python/cpython/pull/115625
[3.11] gh-108303: Move Lib/test/sortperf.py to Tools/scripts (GH-114687) #115626https://github.com/python/cpython/pull/115626
[3.12] gh-108303: Fix and move badsyntax_pep3120.py (GH-109513) #130540https://github.com/python/cpython/pull/130540
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.