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

Fix pytest 8.4 incompatibility

Open ndhansen opened this issue 6 months ago • 2 comments

When this package was written, it was targetting version pytest 2.0, which had no public cleanup interface, and it called the protected config._cleanup. In version 2.7 the public add_cleanup flag was added (MR).

Then, in version 8.4, the protected variable was renamed, and this package broke.

My MR fixes this bug. I reused the existing tests to make sure it works, and ran them using python 3.13 and pytest 8.4. I don't have any older python versions lying around to test it with, but given the scope of the change it's unlikely to cause regressions.

I bumped the required version of pytest to 7.0, simply because with python 3.13 I wasn't able to get it to work on older versions and I decided the subset of people using this plugin and pytest <7 would be small.

Fixes #28

ndhansen avatar Jun 16 '25 18:06 ndhansen