FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.15] gh-155146: Do not depend on the exact number of allocations in test_class (GH-155150) by miss-islington · Pull Request #155155 · python/cpython · GitHub

Repository navigation

[3.15] gh-155146: Do not depend on the exact number of allocations in test_class (GH-155150) - #155155

Merged
hugovk merged 1 commit into
python:3.15from
miss-islington:backport-416c346-3.15
Aug 8, 2026
Merged

hugovk merged 1 commit into
python:3.15from
miss-islington:backport-416c346-3.15

Conversation

miss-islington commented Aug 4, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Try to fail every one of the first allocations and accept the first one which
fails in the code detaching the instance dictionary from the object, instead
of assuming that this is the first allocation after set_nomemory().

Run the test with the test.support.isolation.runInSubprocess() decorator
instead of executing it as a source string in a subprocess.
(cherry picked from commit 416c346)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 5 (1M context) noreply@anthropic.com

…test_class (pythonGH-155150)

Try to fail every one of the first allocations and accept the first one which
fails in the code detaching the instance dictionary from the object, instead
of assuming that this is the first allocation after set_nomemory().

Run the test with the test.support.isolation.runInSubprocess() decorator
instead of executing it as a source string in a subprocess.
(cherry picked from commit 416c346)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
bedevere-app Bot added the tests Tests in the Lib/test dir label Aug 4, 2026
hugovk merged commit 6c406a4 into python:3.15 Aug 8, 2026
56 checks passed
miss-islington deleted the backport-416c346-3.15 branch August 8, 2026 04:06
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL