@@ -419,7 +419,10 @@ def test_empty(self, xp: ModuleType):
419
419
with warnings .catch_warnings (record = True ):
420
420
warnings .simplefilter ("always" , RuntimeWarning )
421
421
warnings .simplefilter ("always" , UserWarning )
422
- xp_assert_equal (cov (xp .asarray ([], dtype = xp .float64 )), xp .asarray (xp .nan , dtype = xp .float64 ))
422
+ xp_assert_equal (
423
+ cov (xp .asarray ([], dtype = xp .float64 )),
424
+ xp .asarray (xp .nan , dtype = xp .float64 ),
425
+ )
423
426
xp_assert_equal (
424
427
cov (xp .reshape (xp .asarray ([], dtype = xp .float64 ), (0 , 2 ))),
425
428
xp .reshape (xp .asarray ([], dtype = xp .float64 ), (0 , 0 )),
@@ -446,7 +449,10 @@ def test_device(self, xp: ModuleType, device: Device):
446
449
@pytest .mark .skip_xp_backend (Backend .NUMPY_READONLY , reason = "xp=xp" )
447
450
def test_xp (self , xp : ModuleType ):
448
451
xp_assert_close (
449
- cov (xp .asarray ([[0.0 , 2.0 ], [1.0 , 1.0 ], [2.0 , 0.0 ]], dtype = xp .float64 ).T , xp = xp ),
452
+ cov (
453
+ xp .asarray ([[0.0 , 2.0 ], [1.0 , 1.0 ], [2.0 , 0.0 ]], dtype = xp .float64 ).T ,
454
+ xp = xp ,
455
+ ),
450
456
xp .asarray ([[1.0 , - 1.0 ], [- 1.0 , 1.0 ]], dtype = xp .float64 ),
451
457
)
452
458
0 commit comments