Skip to content

Fix pytest.hookspec.pytest_enter_pdb expects a pdb (keyword) argument#25

Open
stdedos wants to merge 1 commit intowronglink:masterfrom
stdedos:fix/PuDBWrapper/arguments-in-hookspec-not-found
Open

Fix pytest.hookspec.pytest_enter_pdb expects a pdb (keyword) argument#25
stdedos wants to merge 1 commit intowronglink:masterfrom
stdedos:fix/PuDBWrapper/arguments-in-hookspec-not-found

Conversation

@stdedos
Copy link

@stdedos stdedos commented Feb 10, 2023

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

@stdedos stdedos force-pushed the fix/PuDBWrapper/arguments-in-hookspec-not-found branch from 5ff340c to 38e933b Compare August 13, 2023 17:44
@stdedos stdedos changed the title fix: pytest.hookspec.pytest_enter_pdb expects a pdb (keyword) arg… fix: pytest.hookspec.pytest_enter_pdb expects a pdb (keyword) argument Aug 13, 2023
…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>
@stdedos stdedos changed the title fix: pytest.hookspec.pytest_enter_pdb expects a pdb (keyword) argument Fix pytest.hookspec.pytest_enter_pdb expects a pdb (keyword) argument Aug 13, 2023
@stdedos stdedos force-pushed the fix/PuDBWrapper/arguments-in-hookspec-not-found branch from 38e933b to f98b949 Compare August 13, 2023 18:18
alexfikl pushed a commit to alexfikl/pytest-pudb that referenced this pull request Jun 20, 2025
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.

1 participant