python-hid-parser
python-hid-parser copied to clipboard
Avoid typeerror exception on tests
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).
I can confirm this fixes tests with pytest-8.3.5 on Fedora rawhide.
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.