# HG changeset patch # User Thierry Bertin-Mahieux # Date 1213202724 14400 # Node ID 0690de82c3386cae990086ca0a881d50a570f1d5 # Parent ebccfd05ccd51dc872af748d66c05a8464f6ded9 a lot of tests are broken because of the new behaviour of __getitem__ that always returns a LookupList, working on that... diff -r ebccfd05ccd5 -r 0690de82c338 _test_dataset.py --- a/_test_dataset.py Wed Jun 11 11:43:54 2008 -0400 +++ b/_test_dataset.py Wed Jun 11 12:45:24 2008 -0400 @@ -258,7 +258,7 @@ assert (numpy.append(x,y)==array[i]).all() i+=1 assert i==l - + def test_getitem(array,ds): def test_ds(orig,ds,index): i=0 @@ -284,13 +284,13 @@ #ds[:n] returns a dataset with the n first examples. ds2=ds[:3] - assert isinstance(ds2,DataSet) + assert isinstance(ds2,LookupList) test_ds(ds,ds2,index=[0,1,2]) del ds2 #ds[i1:i2:s]# returns a ds with the examples i1,i1+s,...i2-s. ds2=ds[1:7:2] - assert isinstance(ds2,DataSet) + assert isinstance(ds2,LookupList) test_ds(ds,ds2,[1,3,5]) del ds2