Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 [email protected]

@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 <[email protected]>
@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
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