python-hid-parser icon indicating copy to clipboard operation
python-hid-parser copied to clipboard

Avoid typeerror exception on tests

Open dirkmueller opened this issue 1 year ago • 1 comments

when running with pytest 8.3.3 on python 3.13 tests fail with

TypeError: exceptions must be derived from Warning, not <class 'NoneType'>

turns out the way to check that no warnings are emitted is not warns(None).

dirkmueller avatar Nov 20 '24 10:11 dirkmueller

I can confirm this fixes tests with pytest-8.3.5 on Fedora rawhide.

rathann avatar Apr 23 '25 19:04 rathann

Sorry for the delay getting back to you! This project has been on the backburner for a while 😅

@dirkmueller thank you for the contribution, and @rathann thank you for testing!

You're welcome! Note that @pfps (of https://github.com/pwr-Solaar/Solaar) offered to help maintain this project as it's a vital component used there.

rathann avatar May 22 '25 15:05 rathann