html5lib test suite uses pytest-expect which seems is not maintained since 2016.
pytest-expect additionally used in its own test suite umsgpack which is already marked as deprecated gsnedders/pytest-expect#15.
On refreshing html5lib for python 3.10 and 3.11 looks like it would be good to remove or replace those bits as well.