@@ -250,10 +250,9 @@ def test_does_not_convert_mixed_integer(self):
250250 assert cols .dtype == joined .dtype
251251 tm .assert_numpy_array_equal (cols .values , joined .values )
252252
253- @pytest .mark .parametrize ('how' , ['outer' , 'inner' , 'left' , 'right' ])
254- def test_join_self (self , how ):
253+ def test_join_self (self , join_type ):
255254 index = date_range ('1/1/2000' , periods = 10 )
256- joined = index .join (index , how = how )
255+ joined = index .join (index , how = join_type )
257256 assert index is joined
258257
259258 def assert_index_parameters (self , index ):
@@ -274,8 +273,7 @@ def test_ns_index(self):
274273 freq = index .freq )
275274 self .assert_index_parameters (new_index )
276275
277- @pytest .mark .parametrize ('how' , ['left' , 'right' , 'inner' , 'outer' ])
278- def test_join_with_period_index (self , how ):
276+ def test_join_with_period_index (self , join_type ):
279277 df = tm .makeCustomDataframe (
280278 10 , 10 , data_gen_f = lambda * args : np .random .randint (2 ),
281279 c_idx_type = 'p' , r_idx_type = 'dt' )
@@ -284,7 +282,7 @@ def test_join_with_period_index(self, how):
284282 with tm .assert_raises_regex (ValueError ,
285283 'can only call with other '
286284 'PeriodIndex-ed objects' ):
287- df .columns .join (s .index , how = how )
285+ df .columns .join (s .index , how = join_type )
288286
289287 def test_factorize (self ):
290288 idx1 = DatetimeIndex (['2014-01' , '2014-01' , '2014-02' , '2014-02' ,
0 commit comments