@@ -250,10 +250,9 @@ def test_does_not_convert_mixed_integer(self):
250
250
assert cols .dtype == joined .dtype
251
251
tm .assert_numpy_array_equal (cols .values , joined .values )
252
252
253
- @pytest .mark .parametrize ('how' , ['outer' , 'inner' , 'left' , 'right' ])
254
- def test_join_self (self , how ):
253
+ def test_join_self (self , join_type ):
255
254
index = date_range ('1/1/2000' , periods = 10 )
256
- joined = index .join (index , how = how )
255
+ joined = index .join (index , how = join_type )
257
256
assert index is joined
258
257
259
258
def assert_index_parameters (self , index ):
@@ -274,8 +273,7 @@ def test_ns_index(self):
274
273
freq = index .freq )
275
274
self .assert_index_parameters (new_index )
276
275
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 ):
279
277
df = tm .makeCustomDataframe (
280
278
10 , 10 , data_gen_f = lambda * args : np .random .randint (2 ),
281
279
c_idx_type = 'p' , r_idx_type = 'dt' )
@@ -284,7 +282,7 @@ def test_join_with_period_index(self, how):
284
282
with tm .assert_raises_regex (ValueError ,
285
283
'can only call with other '
286
284
'PeriodIndex-ed objects' ):
287
- df .columns .join (s .index , how = how )
285
+ df .columns .join (s .index , how = join_type )
288
286
289
287
def test_factorize (self ):
290
288
idx1 = DatetimeIndex (['2014-01' , '2014-01' , '2014-02' , '2014-02' ,
0 commit comments