Skip to content

Try to avoid PyPy test flakes - #9933

Open
akx wants to merge 2 commits into
python-pillow:mainfrom
akx:macos-pypy-failures
Open

Try to avoid PyPy test flakes#9933
akx wants to merge 2 commits into
python-pillow:mainfrom
akx:macos-pypy-failures

Conversation

@akx

@akx akx commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

This proposes to fix the PyPy CI flakiness by skipping or adjusting the tests that are observed to be flaky.

  • Leak test cases can't have accurate RSS measurements since PyPy may decide to JIT compile things during a test, and that'll remain in RSS. I linked Armin Rigo's, one of the PyPy head honchos', Stack Overflow comment as rationale.
  • test_empty_image allocated 100,000,000 64-bit ints for row pointers, in the "tall" case, which, I guess, would take a while when there's memory pressure (again, see above; PyPy is known to be memory-hungrier).

akx added 2 commits August 31, 2026 21:01
The tall case still needs to allocate the row-pointer table `im->image`, which is still roughly 700 megabytes, which evidently can be slow
@akx akx changed the title Don't run certain tests on PyPy Try to avoid PyPy test flakes Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant