@@ -419,7 +419,10 @@ def test_empty(self, xp: ModuleType):
419419 with warnings .catch_warnings (record = True ):
420420 warnings .simplefilter ("always" , RuntimeWarning )
421421 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+ )
423426 xp_assert_equal (
424427 cov (xp .reshape (xp .asarray ([], dtype = xp .float64 ), (0 , 2 ))),
425428 xp .reshape (xp .asarray ([], dtype = xp .float64 ), (0 , 0 )),
@@ -446,7 +449,10 @@ def test_device(self, xp: ModuleType, device: Device):
446449 @pytest .mark .skip_xp_backend (Backend .NUMPY_READONLY , reason = "xp=xp" )
447450 def test_xp (self , xp : ModuleType ):
448451 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+ ),
450456 xp .asarray ([[1.0 , - 1.0 ], [- 1.0 , 1.0 ]], dtype = xp .float64 ),
451457 )
452458
0 commit comments