-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-131290: ensure that test files can be executed as standalone scripts #131371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
picnixz
merged 22 commits into
python:main
from
MaximGit1:fix-for-running-tests-issue-131290
Apr 12, 2025
Merged
Changes from 19 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
a9c7bc0
fixed test_regrtest
MaximGit1 b875bee
added spec in test.test_pyclbr.py
MaximGit1 678893f
changed module name when calling test_metaclass.py directly
MaximGit1 4670696
Merge branch 'main' into fix-for-running-tests-issue-131290
MaximGit1 3241aeb
added Misc/NEWS
MaximGit1 5ffd268
Merge branch 'main' into fix-for-running-tests-issue-131290
MaximGit1 d3cdd6b
Apply review suggestions for test_regrtest
MaximGit1 682613f
added comment for test_metaclass.py
MaximGit1 22c996d
refactor(tests): improve structure and naming in test_pyclbr.py
MaximGit1 6744e91
created news file
MaximGit1 2509478
Update Misc/NEWS.d/next/Tests/2025-03-17-19-47-27.gh-issue-131290.NyC…
MaximGit1 fd29fd1
Removed new entry file NEWS
MaximGit1 a6868a2
Merge remote-tracking branch 'origin/fix-for-running-tests-issue-1312…
MaximGit1 bef8cc5
local import removed in test_pyclbr.py
MaximGit1 584e07b
Created contextmanager for temporarily setting __spec__ on __main__ m…
MaximGit1 9ec71f2
imports order changed
MaximGit1 2134259
refactored contextmanager
MaximGit1 cd3f0bb
removed test_pdb_module
MaximGit1 19e1a3a
changed the order of checks in the test_others function
MaximGit1 d12e5c6
added comment and ignores
MaximGit1 9e28fa4
Update Lib/test/test_pyclbr.py
MaximGit1 ca81976
Merge branch 'main' into fix-for-running-tests-issue-131290
picnixz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2546,4 +2546,5 @@ def test_test_result_get_state(self): | |
|
||
|
||
if __name__ == '__main__': | ||
setup.setup_process() | ||
unittest.main() |
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Tests/2025-03-17-19-47-27.gh-issue-131290.NyCIXR.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Tests in :file:`Lib/test` can now be correctly executed as standalone scripts. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.