Fix deprecation warning in pytest
Fix deprecation warning in pytest

Pytest 8 will deprecate `pytest.warns(None)`. Replace it with an
alternative.

olofk/fusesoc,lowRISC/fusesoc,olofk/fusesoc,lowRISC/fusesoc