def METHOD_NAME(self, axes):
    expected_exc = ValueError
    axis1, axis2 = axes
    with pytest.raises(expected_exc):
        np.trace(self.a_np, axis1=axis1, axis2=axis2)
    with pytest.raises(expected_exc):
        num.trace(self.a_num, axis1=axis1, axis2=axis2)