def test_wrong_size_sigma_1d(self):
        n = len(self.endog)
        assert_raises(ValueError, GLS, self.endog, self.exog, sigma=np.ones(n-1))
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/regression/tests/test_regression.py/TestGLS_alt_sigma.test_wrong_size_sigma_1d/original