Skip to content

CI test: Fix multiple black executables causing admin_scripts to fail - #1

Open
h4l wants to merge 1 commit into
mainfrom
fix-multiple-formatter-executables-admin-scripts-test
Open

CI test: Fix multiple black executables causing admin_scripts to fail#1
h4l wants to merge 1 commit into
mainfrom
fix-multiple-formatter-executables-admin-scripts-test

Conversation

@h4l

@h4l h4l commented Nov 4, 2025

Copy link
Copy Markdown
Owner

The fix for bug #36680 removed the PATH entry containing the black found by find_formatters(), but when black exists on the PATH in more than one location, find_formatters() would still find and run black during the tests, which caused some admin_scripts tests to still fail.

The PATH is now pre-processed to remove all dirs containing black, not just the primary dir.

Trac ticket number

ticket-XXXXX

Branch description

Provide a concise overview of the issue or rationale behind the proposed changes.

Checklist

  • This PR targets the main branch.
  • The commit message is written in past tense, mentions the ticket number, and ends with a period.
  • I have checked the "Has patch" ticket flag in the Trac system.
  • I have added or updated relevant tests.
  • I have added or updated relevant docs, including release notes if applicable.
  • I have attached screenshots in both light and dark modes for any UI changes.

@h4l h4l closed this Nov 4, 2025
@h4l h4l reopened this Nov 4, 2025
@h4l
h4l force-pushed the fix-multiple-formatter-executables-admin-scripts-test branch from 1825033 to ceea243 Compare November 4, 2025 08:31
The fix for bug #36680 removed the PATH entry containing the black found
by `find_formatters()`, but when black exists on the PATH in more than
one location, `find_formatters()` would still find and run black during
the tests, which caused some admin_scripts tests to still fail.

The PATH is now pre-processed to remove all dirs containing black, not
just the primary dir.
@h4l
h4l force-pushed the fix-multiple-formatter-executables-admin-scripts-test branch from ceea243 to 005ca54 Compare November 4, 2025 08:40
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