Fix assertion reporting for tests using the subtesthack
Fix assertion reporting for tests using the subtesthack

This imports the content of this PR to upstream:
https://github.com/untitaker/pytest-subtesthack/pull/7

SoftwareHeritage/swh-web-ui,SoftwareHeritage/swh-web-ui,SoftwareHeritage/swh-web-ui