Skip to content

gh-155146: Do not depend on the exact number of allocations in test_class - #155150

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-155146-nomemory-alloc-index
Open

gh-155146: Do not depend on the exact number of allocations in test_class#155150
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-155146-nomemory-alloc-index

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

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().

Also run the test with the test.support.isolation.runInSubprocess() decorator instead of executing it as a source string in a subprocess.

…test_class

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.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant