Skip to content

Test with PYTHONOPTIMIZE flag - #8092

Closed
stefanv wants to merge 4 commits into
scikit-image:mainfrom
stefanv:test-optimize
Closed

stefanv wants to merge 4 commits into
scikit-image:mainfrom
stefanv:test-optimize

Conversation

@stefanv

@stefanv stefanv commented Mar 13, 2026 •

Copy link
Copy Markdown
Member

Test with PYTHONOPTIMIZE and fix a decorator to allow tests to pass.

Closes #8089

@greptile-apps

greptile-apps Bot commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

  • This PR is safe to merge — it's a minimal, correct one-line fix with no logic concerns.
  • The change is a single line that passes an already-defined matrix variable to the test runner's environment. The matrix configuration (PYTHONOPTIMIZE: [0] default, PYTHONOPTIMIZE: 2 in the "optimize and no pooch" include) was already in place before this PR. No new logic is introduced, and PYTHONOPTIMIZE=0 for non-optimized jobs is semantically equivalent to not setting the variable at all.
  • No files require special attention.

Last reviewed commit: eb9acca

blink1073 added a commit to blink1073/scikit-image that referenced this pull request Mar 29, 2026
@lagru lagru mentioned this pull request Apr 17, 2026
@blink1073

Copy link
Copy Markdown
Contributor

Replaced by #8108

@blink1073 blink1073 closed this May 26, 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.

ImportError for skimage.transform.resize when using PYTHONOPTIMIZE=2 on python3.13

2 participants