Skip to content

fix: update xdist newhooks.py link in hooks how-to docs#14471

Closed
algojogacor wants to merge 1 commit into
pytest-dev:mainfrom
algojogacor:fix/hooks-xdist-link
Closed

fix: update xdist newhooks.py link in hooks how-to docs#14471
algojogacor wants to merge 1 commit into
pytest-dev:mainfrom
algojogacor:fix/hooks-xdist-link

Conversation

@algojogacor
Copy link
Copy Markdown
Contributor

Description

The hooks how-to documentation ("Declaring new hooks" section) links to an example newhooks.py file in pytest-xdist. The link pointed to a specific old commit (974bd566) that predates the src layout migration in pytest-xdist.

This PR updates the link to point to the current master branch with the correct src/xdist/newhooks.py path.

Closes #14465

Changes

  • doc/en/how-to/writing_hook_functions.rst: Updated the newhooks.py reference URL from a pinned old commit to the master branch with the updated src layout path.
  • Added changelog entry changelog/14465.doc.rst.

The link in docs for declaring new hooks pointed to an old xdist
commit that predates the src layout migration. Update it to point
to the current master branch with the correct src/xdist/newhooks.py
path.

Closes pytest-dev#14465
@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label May 13, 2026
@bluetech
Copy link
Copy Markdown
Member

Thanks, but the pin is intentional, so it links to a well-known contents.

@bluetech bluetech closed this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hooks how-to links to old xdist version

2 participants