Skip to content

Fix test suite crash caused by Pytest 9.1 update#6085

Closed
Nagendraprasad-hub wants to merge 1 commit into
pallets:mainfrom
Nagendraprasad-hub:fix-pytest-compatibility
Closed

Fix test suite crash caused by Pytest 9.1 update#6085
Nagendraprasad-hub wants to merge 1 commit into
pallets:mainfrom
Nagendraprasad-hub:fix-pytest-compatibility

Conversation

@Nagendraprasad-hub

Copy link
Copy Markdown

Hello! I noticed the test suite was crashing because the newly released Pytest version 9.1 completely removed the notset attribute from their monkeypatch library.

To fix this I went into the test configuration and command line interface files to remove the old setup code that relied on that deleted variable. I replaced that old logic with the standard delenv method and passed the raising flag as False. This safely clears out the environment variables without throwing an error if they are already empty.

I ran the full test suite locally and everything is passing perfectly again. Let me know if you need me to adjust anything else!

@davidism davidism closed this Jul 7, 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.

2 participants