Skip to content

fix: PytestConfigWarning Unknown config option: python_paths#886

Merged
vgrozdanic merged 1 commit intomasterfrom
vgrozdanic/fix-pytest-ini
Mar 10, 2025
Merged

fix: PytestConfigWarning Unknown config option: python_paths#886
vgrozdanic merged 1 commit intomasterfrom
vgrozdanic/fix-pytest-ini

Conversation

@vgrozdanic
Copy link
Copy Markdown
Contributor

@vgrozdanic vgrozdanic commented Mar 10, 2025

In pytest 7.0.0 this was changed, more details: pytest-dev/pytest#9635

Error I was seeing while running tests:

============================================================================= warnings summary =============================================================================
.venv/lib/python3.12/site-packages/_pytest/config/__init__.py:1441
  /djangorestframework-simplejwt/.venv/lib/python3.12/site-packages/_pytest/config/__init__.py:1441: PytestConfigWarning: Unknown config option: python_paths
  
    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

@vgrozdanic vgrozdanic requested a review from a team March 10, 2025 19:08
Copy link
Copy Markdown
Member

@Andrew-Chen-Wang Andrew-Chen-Wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx!

@vgrozdanic vgrozdanic merged commit 1ac00c6 into master Mar 10, 2025
21 checks passed
@vgrozdanic vgrozdanic deleted the vgrozdanic/fix-pytest-ini branch March 10, 2025 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants