test_freq_table_nodata raises IndexError on Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-wind |
Fix Released
|
Low
|
Goyo |
Bug Description
This test expect that ValueError is raised when calling freq_table with empty arrays, but in my Windows setup IndexError is raised instead. Maybe a numpy version issue?
=======
ERROR: test_freq_
Test function freq_table with no data.
-------
Traceback (most recent call last):
File "test_analysis.py", line 438, in test_freq_
binsize=bs, cutoff=co)
File "D:\Python27\
callableObj
File "..\wind\
h[:, 0] += h[:, -1]
IndexError: invalid index
-------
Numpy version 1.6.1 from PythonXY.
This test expects a ValueError exception, raised by numpy < 1.6 when indexing an empty array. numpy 1.6 raises IndexError instead.
Fixed in r268.