@@ -543,11 +543,11 @@ def test_checktitles(self):
543543
544544class TestJoinBy (TestCase ):
545545 def setUp (self ):
546- self .a = np .array (zip (np .arange (10 ), np .arange (50 , 60 ),
547- np .arange (100 , 110 )),
546+ self .a = np .array (list ( zip (np .arange (10 ), np .arange (50 , 60 ),
547+ np .arange (100 , 110 ))) ,
548548 dtype = [('a' , int ), ('b' , int ), ('c' , int )])
549- self .b = np .array (zip (np .arange (5 , 15 ), np .arange (65 , 75 ),
550- np .arange (100 , 110 )),
549+ self .b = np .array (list ( zip (np .arange (5 , 15 ), np .arange (65 , 75 ),
550+ np .arange (100 , 110 ))) ,
551551 dtype = [('a' , int ), ('b' , int ), ('d' , int )])
552552 #
553553 def test_inner_join (self ):
@@ -620,11 +620,11 @@ def test_leftouter_join(self):
620620class TestJoinBy2 (TestCase ):
621621 @classmethod
622622 def setUp (cls ):
623- cls .a = np .array (zip (np .arange (10 ), np .arange (50 , 60 ),
624- np .arange (100 , 110 )),
623+ cls .a = np .array (list ( zip (np .arange (10 ), np .arange (50 , 60 ),
624+ np .arange (100 , 110 ))) ,
625625 dtype = [('a' , int ), ('b' , int ), ('c' , int )])
626- cls .b = np .array (zip (np .arange (10 ), np .arange (65 , 75 ),
627- np .arange (100 , 110 )),
626+ cls .b = np .array (list ( zip (np .arange (10 ), np .arange (65 , 75 ),
627+ np .arange (100 , 110 ))) ,
628628 dtype = [('a' , int ), ('b' , int ), ('d' , int )])
629629
630630 def test_no_r1postfix (self ):
@@ -660,12 +660,12 @@ def test_no_r2postfix(self):
660660 assert_equal (test , control )
661661
662662 def test_two_keys_two_vars (self ):
663- a = np .array (zip (np .tile ([10 ,11 ],5 ),np .repeat (np .arange (5 ),2 ),
664- np .arange (50 , 60 ), np .arange (10 ,20 )),
663+ a = np .array (list ( zip (np .tile ([10 ,11 ],5 ),np .repeat (np .arange (5 ),2 ),
664+ np .arange (50 , 60 ), np .arange (10 ,20 ))) ,
665665 dtype = [('k' , int ), ('a' , int ), ('b' , int ),('c' ,int )])
666666
667- b = np .array (zip (np .tile ([10 ,11 ],5 ),np .repeat (np .arange (5 ),2 ),
668- np .arange (65 , 75 ), np .arange (0 ,10 )),
667+ b = np .array (list ( zip (np .tile ([10 ,11 ],5 ),np .repeat (np .arange (5 ),2 ),
668+ np .arange (65 , 75 ), np .arange (0 ,10 ))) ,
669669 dtype = [('k' , int ), ('a' , int ), ('b' , int ), ('c' ,int )])
670670
671671 control = np .array ([(10 , 0 , 50 , 65 , 10 , 0 ), (11 , 0 , 51 , 66 , 11 , 1 ),
0 commit comments