Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34.2k
gh-37883: Fix test_resource failures with file size limits#140872
gh-37883: Fix test_resource failures with file size limits#140872ritesh006 wants to merge 1 commit intopython:mainfrom
Conversation
…limitsThis fixes the long-standing issue where test_resource would failon systems with file size limitations. The solution includes:- ResourceLimitHelper class for safe limit manipulation- Dynamic test sizing based on available resources- Conditional test skipping with clear messages- Comprehensive error handling for various platformsTests now adapt to system constraints rather than failing.Fixespython#37883
python-cla-botbot commentedNov 1, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
picnixz left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Please revertall unrelated changes. Do not add docstrings to test methods because they will be rendered on failures. Do not change the skipIf/skipUnless, they are irrelevant and reduce the diff readability. Focus on fixing the tests themselves, but not refactoring the existing code (if this is needed, this must be done in a separate PR).
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Uh oh!
There was an error while loading.Please reload this page.
This fixes the long-standing issue where test_resource would fail on systems with file size limitations. The solution includes:
Tests now adapt to system constraints rather than failing.
Fixes#37883