File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,16 +55,16 @@ def test_select(self):
5555 read += thisread
5656 completed .append (next [0 ])
5757 if thisread :
58- self .failUnlessEqual (
58+ self .assertEqual (
5959 last [0 ][- 1 ][0 ], next [0 ][0 ][0 ] - 1 ,
6060 "first row(-1) of next failed to match the last row of the previous"
6161 )
6262 last = next
6363 elif next [1 ] != 0 :
6464 # done
6565 break
66- self .failUnlessEqual (read , limit )
67- self .failUnlessEqual (list (range (- 1 , limit )), [
66+ self .assertEqual (read , limit )
67+ self .assertEqual (list (range (- 1 , limit )), [
6868 x [0 ] for x in itertools .chain (* completed )
6969 ])
7070
@@ -88,16 +88,16 @@ def test_copy_out(self):
8888 read += thisread
8989 completed .append (next [0 ])
9090 if thisread :
91- self .failUnlessEqual (
91+ self .assertEqual (
9292 last [0 ][- 1 ], next [0 ][0 ] - 1 ,
9393 "first row(-1) of next failed to match the last row of the previous"
9494 )
9595 last = next
9696 elif next [1 ] != 0 :
9797 # done
9898 break
99- self .failUnlessEqual (read , limit )
100- self .failUnlessEqual (
99+ self .assertEqual (read , limit )
100+ self .assertEqual (
101101 list (range (- 1 , limit )),
102102 list (itertools .chain (* completed ))
103103 )
You can’t perform that action at this time.
0 commit comments