Fix pytest.hookspec.pytest_enter_pdb expects a pdb (keyword) argument#25
Open
stdedos wants to merge 1 commit intowronglink:masterfrom
Open
Fix pytest.hookspec.pytest_enter_pdb expects a pdb (keyword) argument#25stdedos wants to merge 1 commit intowronglink:masterfrom
pytest.hookspec.pytest_enter_pdb expects a pdb (keyword) argument#25stdedos wants to merge 1 commit intowronglink:masterfrom
Conversation
5ff340c to
38e933b
Compare
pytest.hookspec.pytest_enter_pdb expects a pdb (keyword) arg…pytest.hookspec.pytest_enter_pdb expects a pdb (keyword) argument
…ment
Pass down the current `pudb` instance, received via `self._pudb_get_debugger`
Fixes:
> ```
> ===================================== warnings summary ======================================
> .../tests/test_sanity.py::test_sanity
> .../.venv/lib/python3.9/site-packages/pytest_pudb.py:55: UserWarning:
>
> Argument(s) ('pdb',) which are declared in the hookspec can not be found in this hook call
>
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ```
Source: https://docs.pytest.org/en/latest/reference/reference.html#pytest.hookspec.pytest_enter_pdb
Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com>
pytest.hookspec.pytest_enter_pdb expects a pdb (keyword) argumentpytest.hookspec.pytest_enter_pdb expects a pdb (keyword) argument
38e933b to
f98b949
Compare
alexfikl
pushed a commit
to alexfikl/pytest-pudb
that referenced
this pull request
Jun 20, 2025
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.
Pass down the current
pudbinstance, received viaself._pudb_get_debuggerFixes:
Source: https://docs.pytest.org/en/latest/reference/reference.html#pytest.hookspec.pytest_enter_pdb
Signed-off-by: Stavros Ntentos 133706+stdedos@users.noreply.github.com