pytest-pudb icon indicating copy to clipboard operation
pytest-pudb copied to clipboard

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

Open stdedos opened this issue 3 years ago • 0 comments

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 avatar Feb 10 '23 16:02 stdedos