Ideally we should refactor those entirely.
Should definitely fix the debian build [1]
[1] https://jenkins.softwareheritage.org/job/debian/job/packages/job/DCORE/job/gbp-buildpackage/118/console
D3459 was not enough. Got mislead by pytest's better raises function
apparently. Also neither tox nor pytest pick it up, i don't get why but meh.