statsmodels/statsmodels — Issue #151: shape mismatch in test on python 3.2 only
Author: josef-pkt
Created: 2012-02-28 20:28:35+00:00
State: open
Labels: comp-regression

There is a test failure on python 3.2, with numpy 1.6.1 that doesn't show up on python 2.6 and python 2.7 with numpy 1.5.1

There shouldn't be a change in shape between python or numpy version -> investigate

```
======================================================================
FAIL: scikits.statsmodels.regression.tests.test_glsar_gretl.TestGLSARGretl.test_all
----------------------------------------------------------------------
Traceback (most recent call last):
File "E:\Josef\testing\tox\py32a\lib\site-packages\nose-1.1.2-py3.2.egg\nose\case.py", line 198, in runTest
self.test(*self.arg)
File "E:\Josef\testing\tox\py32a\lib\site-packages\scikits\statsmodels\regression\tests\test_glsar_gretl.py", line 394, in test_all
assert_almost_equal(lev['residual'], res.resid, decimal=3)
File "E:\Josef\testing\tox\py32a\lib\site-packages\numpy\testing\utils.py", line 452, in assert_almost_equal
return assert_array_almost_equal(actual, desired, decimal, err_msg)
File "E:\Josef\testing\tox\py32a\lib\site-packages\numpy\testing\utils.py", line 800, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "E:\Josef\testing\tox\py32a\lib\site-packages\numpy\testing\utils.py", line 600, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 3 decimals

(shapes (203,), (202,) mismatch)
x: array([ -2.0742 , -16.829 , 17.807 , 14.214 , -24.269 , 5.7992 ,
-20.886 , 9.8798 , 7.4863 , 14.11 , -18.151 , 2.6465 ,
-13.329 , 2.0981 , -8.0123 , 9.6415 , -5.0585 , -10.143 ,...
y: array([ -2.07421831, -16.82909218, 17.80662976, 14.21410214,
-24.26869911, 5.79918141, -20.88578163, 9.87977101,
7.48632953, 14.10971562, -18.15136031, 2.64645435,...
```