diff _test_dataset.py @ 311:0690de82c338

a lot of tests are broken because of the new behaviour of __getitem__ that always returns a LookupList, working on that...
author Thierry Bertin-Mahieux <bertinmt@iro.umontreal.ca>
date Wed, 11 Jun 2008 12:45:24 -0400
parents eded3cb54930
children 96cca78de3ed
line wrap: on
line diff
--- 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