@@ -281,24 +281,26 @@ def setup_method(self, method):
281
281
def test_ewmcov_pairwise (self ):
282
282
self ._check_pairwise_moment ("ewm" , "cov" , span = 10 , min_periods = 5 )
283
283
284
- @pytest .mark .parametrize ("name" , ["cov" , "corr" ])
285
- def test_ewm_corr_cov (self , name , min_periods , binary_ew_data ):
286
- A , B = binary_ew_data
287
-
288
- check_binary_ew (name = "corr" , A = A , B = B )
289
- check_binary_ew_min_periods ("corr" , min_periods , A , B )
290
-
291
284
def test_ewmcorr_pairwise (self ):
292
285
self ._check_pairwise_moment ("ewm" , "corr" , span = 10 , min_periods = 5 )
293
286
294
- @pytest .mark .parametrize ("name" , ["cov" , "corr" ])
295
- def test_different_input_array_raise_exception (self , name , binary_ew_data ):
296
287
297
- A , _ = binary_ew_data
298
- msg = "Input arrays must be of the same type!"
299
- # exception raised is Exception
300
- with pytest .raises (Exception , match = msg ):
301
- ew_func (A , randn (50 ), 20 , name = name , min_periods = 5 )
288
+ @pytest .mark .parametrize ("name" , ["cov" , "corr" ])
289
+ def test_ewm_corr_cov (name , min_periods , binary_ew_data ):
290
+ A , B = binary_ew_data
291
+
292
+ check_binary_ew (name = "corr" , A = A , B = B )
293
+ check_binary_ew_min_periods ("corr" , min_periods , A , B )
294
+
295
+
296
+ @pytest .mark .parametrize ("name" , ["cov" , "corr" ])
297
+ def test_different_input_array_raise_exception (name , binary_ew_data ):
298
+
299
+ A , _ = binary_ew_data
300
+ msg = "Input arrays must be of the same type!"
301
+ # exception raised is Exception
302
+ with pytest .raises (Exception , match = msg ):
303
+ ew_func (A , randn (50 ), 20 , name = name , min_periods = 5 )
302
304
303
305
304
306
@pytest .mark .slow
0 commit comments