Marking Exception to pytest.raises as generic