chore(deps): upgrade dependency pytest to v9#2995
Merged
Conversation
|
Thanks for opening this pull request! This pull request can be checked-out with: git fetch origin pull/2995/head:pr-2995
git checkout pr-2995This pull request can be installed with: pip install git+https://github.com/Pycord-Development/pycord@refs/pull/2995/head |
1acdeb0 to
26f8048
Compare
26f8048 to
cb84ae7
Compare
Member
|
looks okay to me, we might wanna adjust the pyproject.toml in future |
Lumabots
pushed a commit
to Lumabots/pycord
that referenced
this pull request
Dec 5, 2025
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
solaluset
pushed a commit
to solaluset/pycord
that referenced
this pull request
Jan 29, 2026
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
baribarton
pushed a commit
to baribarton/pycord-no-potential-reconnect
that referenced
this pull request
Feb 24, 2026
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
baribarton
added a commit
to baribarton/pycord-no-potential-reconnect
that referenced
this pull request
Feb 24, 2026
* chore(deps): upgrade pre-commit hook asottile/pyupgrade to v3.21.1 (Pycord-Development#2996) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): upgrade softprops/action-gh-release action to v2.4.2 (Pycord-Development#2997) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): upgrade dependency pre-commit to v4.4.0 (Pycord-Development#2998) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): upgrade pre-commit hook psf/black-pre-commit-mirror to v25.11.0 (Pycord-Development#2999) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): upgrade dependency pytest-asyncio to ~=1.3.0 (Pycord-Development#3000) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: Fix breaking change in `ui.Select` Generic typing (Pycord-Development#3002) * Update select.py * fix: update TypeVar defaults for BaseView and DesignerModal in select.py * Update discord/ui/select.py Co-authored-by: Paillat <jeremiecotti@ik.me> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * fix: update TypeVar default for V in select.py * fix: update changelog to reflect fix for breaking change in ui.Select Generic typing * style(pre-commit): auto fixes from pre-commit.com hooks --------- Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Co-authored-by: Paillat <jeremiecotti@ik.me> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * chore(deps): upgrade pre-commit hook asottile/pyupgrade to v3.21.2 (Pycord-Development#3006) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): upgrade dependency msgspec to ~=0.20.0 (Pycord-Development#3009) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * docs: 📝 Fix versionadded for bypass slowmode permission to 2.7 (Pycord-Development#3010) :memo: Fix versionadded for bypass slowmode permission to 2.7 * chore(deps): upgrade actions/checkout action to v6 (Pycord-Development#3007) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): upgrade dependency pre-commit to v4.5.0 (Pycord-Development#3008) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): upgrade dependency bandit to v1.9.2 (Pycord-Development#3005) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): upgrade dependency pytest to v9 (Pycord-Development#2995) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: ♻️ Make Attachment.save clearer by expliciting that chunksize is non-null (Pycord-Development#2991) Co-authored-by: plun1331 <plun1331@gmail.com> * fix: 🐛 Fix paginator implementation when only passing `PageGroup` objects and `show_menu` is falsy (Pycord-Development#2993) * chore(deps): upgrade pre-commit hook psf/black-pre-commit-mirror to v25.12.0 (Pycord-Development#3021) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: 🐛 Use `.parent` when disabling items on timeout for private channel messages (Pycord-Development#3016) * chore(deps): upgrade actions/cache action to v5 (Pycord-Development#3026) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * refactor: rework how item.view is determined (Pycord-Development#2981) * feat: rework how item.view is determined * docs: changelog * style(pre-commit): auto fixes from pre-commit.com hooks * Update discord/ui/view.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: plun1331 <plun1331@gmail.com> * remove useless stuff * fuckin circles man * style(pre-commit): auto fixes from pre-commit.com hooks * Update discord/ui/item.py Signed-off-by: Paillat <jeremiecotti@ik.me> * Annotate return type for remove_item method Added return type annotation for remove_item method. Signed-off-by: Paillat <paillat@pycord.dev> --------- Signed-off-by: plun1331 <plun1331@gmail.com> Signed-off-by: Nelo <41271523+NeloBlivion@users.noreply.github.com> Signed-off-by: Paillat <paillat@pycord.dev> Signed-off-by: Paillat <jeremiecotti@ik.me> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Nelo <41271523+NeloBlivion@users.noreply.github.com> Co-authored-by: Paillat <paillat@pycord.dev> * chore(deps): upgrade dependency pre-commit to v4.5.1 (Pycord-Development#3028) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): upgrade actions/upload-artifact action to v6 (Pycord-Development#3027) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): upgrade crowdin/github-action action to v2.13.0 (Pycord-Development#3015) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): upgrade softprops/action-gh-release action to v2.5.0 (Pycord-Development#3014) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): upgrade dependency mypy to ~=1.19.1 (Pycord-Development#3011) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * docs: 📝 Fixes (Pycord-Development#3030) * 📝 Fix formatting for gateway links in docstrings * 📝 Fix documentation for default value type in mentionable select * 🐛 Fix import path for Interaction in label.py * 📝 Exclude 'cog' member from SlashCommand documentation * 📝 Fix documentation of `check_any` * 📝 Fix section heading underline lenght in docstring sections * feat: ✨ Add `fetch_roles_member_counts` method to `Guild` and corresponding HTTP route (Pycord-Development#3020) * ✨ Add `fetch_roles_member_counts` method to `Guild` and corresponding HTTP route * 📝 CHANGELOG.md * ♻️ Add GuildRoleCounts class for mapping role IDs to member counts * ✨ Add custom __repr__ method to GuildRoleCounts for improved representation * 📝 Add usage examples for fetching member counts in GuildRoleCounts * Update discord/guild.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me> * style(pre-commit): auto fixes from pre-commit.com hooks * 📝 Document raised exception for fetching role member counts in GuildRoleCounts * ♻️ Enhance GuildRoleCounts with TypeVar and add __contains__ method for role ID checks * 📝 CHANGELOG.md --------- Signed-off-by: Paillat <jeremiecotti@ik.me> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * fix(actions): rework release workflow (Pycord-Development#3034) * chore: empty (Pycord-Development#3035) * chore: empty * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * fix: "fix" bandit issues * chore(release): update CHANGELOG.md for version 2.7.0 * fix: Update checkout action to v6 in release workflow Signed-off-by: Lala Sabathil <lala@pycord.dev> * chore(actions): cleanup * fix(actions): gh milestone create takes -t arg * chore: empty (Pycord-Development#3036) * chore: empty * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * chore: ⚰️ Remove meaningless TODO comment from interactions.py (Pycord-Development#3039) :coffin: Remove meaningless TODO comment from interactions.py * fix: :bug: Set `cached_message` attribute to `RawMessageUpdateEvent` on message edits (Pycord-Development#3038) * 🐛 Set cached_message attribute to RawMessageUpdateEvent on message edits * 📝 CHANGELOG.md --------- Co-authored-by: Lala Sabathil <lala@pycord.dev> * docs: Fix typo in enums.rst documentation (Pycord-Development#3045) Fix typo in enums.rst documentation fix "stringly typed" to "strongly typed" Signed-off-by: Ryan Hou <rhou7873@gmail.com> * fix: 🐛 Add permission check to `Role.is_assignable()` (Pycord-Development#3048) Co-authored-by: Nelo <41271523+NeloBlivion@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * feat: ✨Add `BaseEmoji.extension` and fix animated emoji downloads (Pycord-Development#3055) * ✨🐛 Add extension property and fix animated emoji url * Update changelog accordingly * style(pre-commit): auto fixes from pre-commit.com hooks * 📝 Add versionadded * Apply change requests Co-authored-by: Paillat-dev <me@paillat.dev> * style(pre-commit): auto fixes from pre-commit.com hooks * Apply change requests 2 Co-authored-by: Paillat-dev <me@paillat.dev> * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Paillat-dev <me@paillat.dev> * fix: 🐛 Fallback to resolving channel with interaction data when not cached (Pycord-Development#3047) * :fix: Fallback to resolving channel with interaction channel data when channel is missing from cache * 📝 CHANGELOG.md * Fix wording in CHANGELOG for clarity Signed-off-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> --------- Signed-off-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> * chore(deps): upgrade ribtoks/tdg-github-action action to v0.4.16 (Pycord-Development#3058) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): upgrade dependency myst-parser to v5 (Pycord-Development#3066) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: 🐛 Correct page group assignment in Paginator (Pycord-Development#3065) * fix: 🐛 Correct page group assignment in Paginator * style(pre-commit): auto fixes from pre-commit.com hooks * fix: 🐛 Update changelog to include fix for incorrect page group assignment in Paginator --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * docs: 💄 Add width appearance selector to docs (Pycord-Development#3040) * 💄 Add width appearance selector to docs * ♻️ Use `padding:` --------- Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> * docs: Update localizations from Crowdin (Pycord-Development#3068) Co-authored-by: Crowdin Bot <support+bot@crowdin.com> * fix: 🐛 Fix docs rendering for `ForwardedMessage` and `MessageSnapshot` and add missing attributes (Pycord-Development#3051) * 📝 Add missing rendering for MessageSnapshot in docs * 📝 Add missing rendering for ForwardedMessage in docs * 🐛 Add missing mentions property for ForwardedMessage * style(pre-commit): auto fixes from pre-commit.com hooks * Add to changelog * style(pre-commit): auto fixes from pre-commit.com hooks * Correct data conversion * Correct docstring data type * 📝 Add note in docs to inform about empty list possibility * 📝 Update role_mentions docs to warn about its usage * Implement type attribute * Update changelog accordingly * Copy role mentions logic from `Message` This knowingly doesn't work yet due to a Discord limitation / unresolved discussion on the API. A warning in the docs is in place * Add missing type information * Update changelog * Update CHANGELOG.md , Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: ToothyDev <55001472+ToothyDev@users.noreply.github.com> --------- Signed-off-by: ToothyDev <55001472+ToothyDev@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> * chore(deps): upgrade dependency bandit to v1.9.3 (Pycord-Development#3070) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(pre-commit): pre-commit autoupdate (Pycord-Development#3071) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * fix: 📝 Add missing docs to `.respond` methods (Pycord-Development#3061) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Paillat <paillat@pycord.dev> * docs: changelog patches (Pycord-Development#3075) * docs: changelog patches * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * chore(deps): upgrade crowdin/github-action action to v2.14.0 (Pycord-Development#3072) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: Unify API and gateway version constants (Pycord-Development#3080) * fix: Unify API and gateway version constants Introduced a new constants module to define API_VERSION and GATEWAY_VERSION, and updated gateway and HTTP modules to use these shared constants. This prevents version drift between REST and gateway usage. Updated the changelog to reflect this change. * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * Revert "fix: Unify API and gateway version constants (Pycord-Development#3080)" This reverts commit ff6464e. * fix: remove unused identify property * fix: 🐛 Primary guild update not firing `on_user_update` (Pycord-Development#3077) Co-authored-by: Paillat <jeremiecotti@ik.me> Co-authored-by: Paillat-dev <me@paillat.dev> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Paillat <paillat@pycord.dev> * docs: update slash options example (Pycord-Development#3083) * fix: 🎨 Format code (Pycord-Development#3085) * chore(docs): ⬆️ upgrade Sphinx and related dependencies to latest versions (Pycord-Development#3067) * ⬆️ chore(docs): upgrade Sphinx and related dependencies to latest versions * ➖ Remove sphinxcontrib_trio dependency * ➕ Add back sphinxcontrib_trio because it got updated * 📝 CHANGELOG.md * chore: ⬆️ Bump `setuptools` to version `77.0.3` in pyproject.toml (Pycord-Development#3054) :arrow_up: Bump `setuptools` to version `77.0.3` in pyproject.toml * fix: :bug: Set autocomplete instance method status on `Option` directly (Pycord-Development#3082) * 🐛 Set autocomplete instance method status on `Option` directly * 📝 CHANGELO * Update CHANGELOG.md Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me> --------- Signed-off-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> * fix: ♻️ Handle exceptions during message edits in Paginator and BaseView timeouts (Pycord-Development#3019) * fix: ♻️ Handle discord.HTTPException during message edits in Paginator and BaseView * style(pre-commit): auto fixes from pre-commit.com hooks * fix: ♻️ Update changelog to reflect changes in BaseView and Paginator timeout behavior * Update discord/ext/pages/pagination.py Co-authored-by: Paillat <jeremiecotti@ik.me> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * fix: reorder timeout error handling in changelog * style(pre-commit): auto fixes from pre-commit.com hooks * fix: format changelog for better readability * style(pre-commit): auto fixes from pre-commit.com hooks * chore: update changelog with new features, changes, and fixes for version 2.7.0 * style(pre-commit): auto fixes from pre-commit.com hooks * chore: update changelog with new features, changes, and fixes for Components V2 and other improvements * fix: improve error handling and clean up type annotations in Paginator and BaseView * style(pre-commit): auto fixes from pre-commit.com hooks * fix: improve message handling and type hint formatting in BaseView and ViewStore * style(pre-commit): auto fixes from pre-commit.com hooks * fix: replace discord error references with local imports in BaseView * style(pre-commit): auto fixes from pre-commit.com hooks * Apply suggestion from @Paillat-dev Signed-off-by: Paillat <jeremiecotti@ik.me> * style(pre-commit): auto fixes from pre-commit.com hooks * Update CHANGELOG.md Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> --------- Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Paillat <jeremiecotti@ik.me> Co-authored-by: Paillat <paillat@pycord.dev> Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> * fix: 🐛 Only remove custom view item from paginator if it is in it (Pycord-Development#3090) * 🐛 Only remove custom view item from paginator if it is in it * 📝 CHANGELOG.md * fix: General fixes for views (Pycord-Development#3032) * introduce replace_item and some additional patches * style(pre-commit): auto fixes from pre-commit.com hooks * cls * style(pre-commit): auto fixes from pre-commit.com hooks * rework underlying * style(pre-commit): auto fixes from pre-commit.com hooks * maybe fixed * , * or * spacing * replace and remove on gallery * style(pre-commit): auto fixes from pre-commit.com hooks * index * select_type * row * type * cl * style(pre-commit): auto fixes from pre-commit.com hooks * fix(actions): rework release workflow (Pycord-Development#3034) * fix(actions): rework release workflow * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-Authored-By: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * style(pre-commit): auto fixes from pre-commit.com hooks * revert cl * files * file again * one more * cl * style(pre-commit): auto fixes from pre-commit.com hooks * buildout for new features & items aliases * style(pre-commit): auto fixes from pre-commit.com hooks * fix * style(pre-commit): auto fixes from pre-commit.com hooks * Iterator, * style(pre-commit): auto fixes from pre-commit.com hooks * fix modal typing * correct return types * fix modal error docs * remove incorrect release script * fix paginator * style(pre-commit): auto fixes from pre-commit.com hooks * doc fix * add convenience methods to DesignerView * style(pre-commit): auto fixes from pre-commit.com hooks * adjust underlying order * fix fileupload * misc * view.add_row * misc fixes * style(pre-commit): auto fixes from pre-commit.com hooks * fix * adjust legacy item attributes * style(pre-commit): auto fixes from pre-commit.com hooks * width docs adjustment * style(pre-commit): auto fixes from pre-commit.com hooks * remove new features for 3093 * style(pre-commit): auto fixes from pre-commit.com hooks * change row to deprecation * remove uncertain paginator fix * file setter * media setter * dead changelog * Update discord/ext/pages/pagination.py Co-authored-by: Paillat <jeremiecotti@ik.me> Signed-off-by: Nelo <41271523+NeloBlivion@users.noreply.github.com> * Update discord/ui/select.py Signed-off-by: Paillat <jeremiecotti@ik.me> * Update discord/ui/button.py Signed-off-by: Paillat <jeremiecotti@ik.me> --------- Signed-off-by: Lala Sabathil <lala@pycord.dev> Signed-off-by: Nelo <41271523+NeloBlivion@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: Paillat <paillat@pycord.dev> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Co-authored-by: Paillat <jeremiecotti@ik.me> * chore(actions): disable dn * chore(actions): bump execute-whitelist-action to v2.1.0 Update .github/workflows/release.yml to use Pycord-Development/execute-whitelist-action@v2.1.0 (was v2.0.0) for the Security Check step so the release workflow picks up the latest fixes and improvements. * chore(release): update CHANGELOG.md for version 2.7.1 --------- Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Signed-off-by: plun1331 <plun1331@gmail.com> Signed-off-by: Nelo <41271523+NeloBlivion@users.noreply.github.com> Signed-off-by: Paillat <paillat@pycord.dev> Signed-off-by: Paillat <jeremiecotti@ik.me> Signed-off-by: Lala Sabathil <lala@pycord.dev> Signed-off-by: Ryan Hou <rhou7873@gmail.com> Signed-off-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Signed-off-by: ToothyDev <55001472+ToothyDev@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Co-authored-by: Paillat <jeremiecotti@ik.me> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Paillat <paillat@pycord.dev> Co-authored-by: plun1331 <plun1331@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Nelo <41271523+NeloBlivion@users.noreply.github.com> Co-authored-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: NyuwBot <nyuw@aitsys.dev> Co-authored-by: Ryan Hou <rhou7873@gmail.com> Co-authored-by: ToothyDev <55001472+ToothyDev@users.noreply.github.com> Co-authored-by: Paillat-dev <me@paillat.dev> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~=8.4.1->~=9.0.1Release Notes
pytest-dev/pytest (pytest)
v9.0.1Compare Source
pytest 9.0.1 (2025-11-12)
Bug fixes
raise unittest.SkipTest.Packaging updates and notes for downstreams
version string can be passed into its
package_envthroughthe
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTESTenvironmentvariable as a part of the release process -- by
webknjaz.Contributor-facing changes
creating GitHub Releases without having a Git checkout on
disk -- by
bluetechandwebknjaz.version string can be passed into its
package_envthroughthe
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTESTenvironmentvariable as a part of the release process -- by
webknjaz.v9.0.0Compare Source
pytest 9.0.0 (2025-11-05)
New features
#1367: Support for subtests has been added.
subtests <subtests>are an alternative to parametrization, useful in situations where the parametrization values are not all known at collection time.Example:
Each assert failure or error is caught by the context manager and reported individually, giving a clear picture of all files that are missing a docstring.
In addition,
unittest.TestCase.subTestis now also supported.This feature was originally implemented as a separate plugin in pytest-subtests, but since then has been merged into the core.
#13743: Added support for native TOML configuration files.
While pytest, since version 6, supports configuration in
pyproject.tomlfiles under[tool.pytest.ini_options],it does so in an "INI compatibility mode", where all configuration values are treated as strings or list of strings.
Now, pytest supports the native TOML data model.
In
pyproject.toml, the native TOML configuration is under the[tool.pytest]table.The
[tool.pytest.ini_options]table remains supported, but both tables cannot be used at the same time.If you prefer to use a separate configuration file, or don't use
pyproject.toml, you can usepytest.tomlor.pytest.toml:The documentation now (sometimes) shows configuration snippets in both TOML and INI formats, in a tabbed interface.
See
config file formatsfor full details.#13823: Added a "strict mode" enabled by the
strictconfiguration option.When set to
true, thestrictoption currently enablesstrict_configstrict_markersstrict_parametrization_idsstrict_xfailThe individual strictness options can be explicitly set to override the global
strictsetting.The previously-deprecated
--strictcommand-line flag now enables strict mode.If pytest adds new strictness options in the future, they will also be enabled in strict mode.
Therefore, you should only enable strict mode if you use a pinned/locked version of pytest,
or if you want to proactively adopt new strictness options as they are added.
See
strict modefor more details.#13737: Added the
strict_parametrization_idsconfiguration option.When set, pytest emits an error if it detects non-unique parameter set IDs,
rather than automatically making the IDs unique by adding 0, 1, ... to them.
This can be particularly useful for catching unintended duplicates.
#13072: Added support for displaying test session progress in the terminal tab using the OSC 9;4; ANSI sequence.
When pytest runs in a supported terminal emulator like ConEmu, Gnome Terminal, Ptyxis, Windows Terminal, Kitty or Ghostty,
you'll see the progress in the terminal tab or window,
allowing you to monitor pytest's progress at a glance.
This feature is automatically enabled when running in a TTY. It is implemented as an internal plugin. If needed, it can be disabled as follows:
-p no:terminalprogresson the command line or via an environment variablePYTEST_ADDOPTS='-p no:terminalprogress'.addopts = "-p no:terminalprogress".#478: Support PEP420 (implicit namespace packages) as --pyargs target when
consider_namespace_packagesis true in the config.Previously, this option only impacted package imports, now it also impacts tests discovery.
#13678: Added a new
faulthandler_exit_on_timeoutconfiguration option set to "false" by default to let faulthandler interrupt the pytest process after a timeout in case of deadlock.Previously, a faulthandler timeout would only dump the traceback of all threads to stderr, but would not interrupt the pytest process.
-- by
ogrisel.#13829: Added support for configuration option aliases via the
aliasesparameter inParser.addini() <pytest.Parser.addini>.Plugins can now register alternative names for configuration options,
allowing for more flexibility in configuration naming and supporting backward compatibility when renaming options.
The canonical name always takes precedence if both the canonical name and an alias are specified in the configuration file.
Improvements in existing functionality
#13330: Having pytest configuration spread over more than one file (for example having both a
pytest.inifile andpyproject.tomlwith a[tool.pytest.ini_options]table) will now print a warning to make it clearer to the user that only one of them is actually used.-- by
sgaist#13574: The single argument
--versionno longer loads the entire plugin infrastructure, making it faster and more reliable when displaying only the pytest version.Passing
--versiontwice (e.g.,pytest --version --version) retains the original behavior, showing both the pytest version and plugin information.#13823: Added
strict_xfailas an alias to thexfail_strictoption,strict_configas an alias to the--strict-configflag,and
strict_markersas an alias to the--strict-markersflag.This makes all strictness options consistently have configuration options with the prefix
strict_.#13700: --junitxml no longer prints the generated xml file summary at the end of the pytest session when --quiet is given.
#13732: Previously, when filtering warnings, pytest would fail if the filter referenced a class that could not be imported. Now, this only outputs a message indicating the problem.
#13859: Clarify the error message for pytest.raises() when a regex match fails.
#13861: Better sentence structure in a test's expected error message. Previously, the error message would be "expected exception must be <expected>, but got <actual>". Now, it is "Expected <expected>, but got <actual>".
Removals and backward incompatible breaking changes
#12083: Fixed a bug where an invocation such as pytest a/ a/b would cause only tests from a/b to run, and not other tests under a/.
The fix entails a few breaking changes to how such overlapping arguments and duplicates are handled:
If you rely on these behaviors, consider using
--keep-duplicates <duplicate-paths>, which retains its existing behavior (including the bug).#13719: Support for Python 3.9 is dropped following its end of life.
#13766: Previously, pytest would assume it was running in a CI/CD environment if either of the environment variables $CI or $BUILD_NUMBER was defined;
now, CI mode is only activated if at least one of those variables is defined and set to a non-empty value.
#13779: PytestRemovedIn9Warning deprecation warnings are now errors by default.
Following our plan to remove deprecated features with as little disruption as
possible, all warnings of type
PytestRemovedIn9Warningnow generate errorsinstead of warning messages by default.
The affected features will be effectively removed in pytest 9.1, so please consult the
deprecationssection in the docs for directions on how to update existing code.In the pytest
9.0.Xseries, it is possible to change the errors back into warnings as astopgap measure by adding this to your
pytest.inifile:But this will stop working when pytest
9.1is released.If you have concerns about the removal of a specific feature, please add a
comment to
13779.Deprecations (removal in next major release)
monkeypatch.syspath_prepend() <pytest.MonkeyPatch.syspath_prepend>now issues a deprecation warning when the prepended path contains legacy namespace packages (those usingpkg_resources.declare_namespace()).Users should migrate to native namespace packages (
420).See
monkeypatch-fixup-namespace-packagesfor details.Bug fixes
#13445: Made the type annotations of
pytest.skipand friends more spec-complaint to have them work across more type checkers.#13537: Fixed a bug in which
ExceptionGroupwith onlySkippedexceptions in teardown was not handled correctly and showed as error.#13598: Fixed possible collection confusion on Windows when short paths and symlinks are involved.
#13716: Fixed a bug where a nonsensical invocation like
pytest x.py[a](a file cannot be parametrized) was silently treated aspytest x.py. This is now a usage error.#13722: Fixed a misleading assertion failure message when using
pytest.approxon mappings with differing lengths.#13773: Fixed the static fixture closure calculation to properly consider transitive dependencies requested by overridden fixtures.
#13816: Fixed
pytest.approxwhich now returns a clearer error message when comparing mappings with different keys.#13849: Hidden
.pytest.inifiles are now picked up as the config file even if empty.This was an inconsistency with non-hidden
pytest.ini.#13865: Fixed --show-capture with --tb=line.
#13522: Fixed
pytesterin subprocess mode ignored all :attr`pytester.plugins <pytest.Pytester.plugins>` except the first.Fixed
pytesterin subprocess mode silently ignored non-strpytester.plugins <pytest.Pytester.plugins>.Now it errors instead.
If you are affected by this, specify the plugin by name, or switch the affected tests to use
pytester.runpytest_inprocess <pytest.Pytester.runpytest_inprocess>explicitly instead.Packaging updates and notes for downstreams
iniconfigandpackagingwere bumped to1.0.1and22.0.0, respectively.Contributor-facing changes
lsofcommand hanging (e.g. due to unreachable network filesystems), with the affected selftests being skipped after 10 seconds.gh pr newcommand inscripts/prepare-release-pr.py.The script now uses
gh pr createwhich is compatible with GitHub CLI v2.0+.ogrisel.tox>=4is now required when contributing to pytest.pytest_addoption(),pytest_configure(), andcacheshow()functions incacheprovider.py.Miscellaneous internal changes
-o/--override-ini) are now processed during startup rather than duringconfig.getini() <pytest.Config.getini>.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.