-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement
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.
When possible, I propose to move these files into sub-directories related to their test. Example:
- create
Lib/test/test_module/sub-directory - move
Lib/test/test_module.pytoLib/test/test_module/__init__.py - move
good_getattr.pyandbad_getattr*.pyscripts toLib/test/test_module/
Well, I created PR #108293 for this specific example.
Linked PRs
- gh-108303: Remove unused Lib/test/sgml_input.html #108305
- gh-108303: Add Lib/test/test_cppext/ sub-directory #108325
- [3.12] gh-108303: Add Lib/test/test_cppext/ sub-directory (GH-108325) #108328
- [3.11] gh-108303: Add Lib/test/test_cppext/ sub-directory (#108325) #108336
- gh-108303: Move
ann_module*.pyfiles totypinganndata/folder #108354 - gh-108303: Create Lib/test/test_dataclasses/ directory #108978
- gh-108303: Create Lib/test/test_dataclasses/ directory #108979
- gh-108303: Move tokenize-related data to
Lib/test/tokenizedata#109265 - gh-108303: Add
Lib/test/tokenizedatatoTESTSUBDIRS#109314 - gh-108303: Move
test_futureinto its own subdir #109368 - gh-108303: Move all certificates to
Lib/test/certdata/#109489 - gh-108303: Move all math files to
Lib/test/mathdata/#109512 - gh-108303: Fix and move
badsyntax_pep3120.py#109513 - gh-108303: Move all inspect test files to
test_inspect/#109607 - [3.11] gh-108303: Remove unused Lib/test/sgml_input.html (GH-108305) #109670
- [3.12] gh-108303: Remove unused Lib/test/sgml_input.html (GH-108305) #109671
- [3.12] gh-108303: Move
ann_module*.pyfiles totypinganndata/folder (GH-108354) #109672 - [3.11] gh-108303: Move
ann_module*.pyfiles totypinganndata/folder (#108354) #109673 - [3.12] gh-108303: Create Lib/test/test_dataclasses/ directory (GH-108978) #109674
- [3.11] gh-108303: Create Lib/test/test_dataclasses/ directory (#108978) #109675
- [3.12] gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265) #109677
- [3.11] gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265) #109678
- [3.12] gh-108303: Move
test_futureinto its own test_future_stmt subdir (#109368) #109679 - [3.11] gh-108303: Move
test_futureinto its own test_future_stmt subdir (#109368) #109680 - [3.12] gh-108303: Move all certificates to
Lib/test/certdata/(GH-109489) #109682 - [3.11] gh-108303: Move all certificates to
Lib/test/certdata/(GH-109489) #109683 - gh-108303: Update test_fractions for new Lib/test/mathdata/ #109686
- [3.11] gh-108303: Fix and move
badsyntax_pep3120.py(GH-109513) #109724 - [3.11] [3.12] gh-108303: Move all certificates to
Lib/test/certdata/(GH-109489) (GH-109682) #110646 - [3.12] gh-108303: Move all inspect test files to
test_inspect/(GH-109607) #110732 - [3.11] gh-108303: Move all inspect test files to
test_inspect/(GH-109607) #111543 - gh-108303: Move
zipandtararchives toLib/test/archivetestdata#111549 - gh-108303: Move more
typingrelated files toLib/test/typinganndata#111825 - [3.12] gh-108303: Move more typing related files to Lib/test/typinganndata (GH-111825) #111859
- [3.11] gh-108303: Move more typing related files to Lib/test/typinganndata (GH-111825) #111860
- gh-108303: Move config parser data to
Lib/test/configparserdata/#111879 - gh-108303: Move more files to
Lib/test/test_module#111880 - [3.12] gh-108303: Move config parser data to
Lib/test/configparserdata/(gh-111879) #111882 - [3.11] gh-108303: Move config parser data to
Lib/test/configparserdata/(gh-111879) #111883 - [3.12] gh-108303: Move more files to
Lib/test/test_module(GH-111880) #111891 - [3.11] gh-108303: Move more files to
Lib/test/test_module(GH-111880) #111892 - gh-108303: Install
Lib/test/configdata#111899 - [3.11] gh-108303: Install
Lib/test/configdata(GH-111899) #111945 - [3.12] gh-108303: Install
Lib/test/configdata(GH-111899) #111946 - gh-108303: Move
double_consttotest_importwhere it belongs #112108 - gh-108303: Move all doctest related files and tests to
Lib/test/test_doctest/#112109 - gh-108303: Delete
imp_dummytest file #112110 - [3.12] gh-108303: Delete
imp_dummytest file (GH-112110) #112114 - [3.12] gh-108303: Move
double_consttotest_importwhere it belongs (GH-112108) #112976 - [3.11] gh-108303: Move
double_consttotest_importwhere it belongs (GH-112108) #112977 - [3.12] gh-108303: Move all doctest related files and tests to
Lib/test/test_doctest/(GH-112109) #114254 - [3.11] gh-108303: Move all doctest related files and tests to
Lib/test/test_doctest/(GH-112109) #114313 - gh-108303: Move
.whltest files toLib/test/whldata/#114343 - gh-108303: Move all XML-related test files to
test_xml#114344 - gh-108303: Remove the non-test
Lib/test/reperf.py#114356 - gh-108303: Move
smtpdtotest.support#114368 - gh-108303: Remove
Lib/test/shadowed_super.py#114372 - [3.12] gh-108303: Move
smtpdtotest.support(GH-114368) #114427 - [3.12] gh-108303: Remove
Lib/test/shadowed_super.py(GH-114372) #114433 - [3.12] gh-108303: Move
.whltest files toLib/test/wheeldata/(GH-114343) #114488 - gh-108303: Move all
pydocrelated files totest_pydoc#114506 - gh-108303: Move
Lib/test/sortperf.pytoTools/scripts#114687 - [3.11] gh-108303: Move all
pydocrelated files totest_pydoc(GH-114506) #115501 - [3.12] gh-108303: Move all
pydocrelated files totest_pydoc(GH-114506) #115502 - [3.12] gh-108303: Move
Lib/test/sortperf.pytoTools/scripts(GH-114687) #115625 - [3.11] gh-108303: Move
Lib/test/sortperf.pytoTools/scripts(GH-114687) #115626 - [3.12] gh-108303: Fix and move
badsyntax_pep3120.py(GH-109513) #130540
zware and erlend-aaslandzware
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement