• N
    [CodeStyle] use np.testing.assert_array_equal instead of... · 93c5c887
    Nyakku Shigure 提交于
    [CodeStyle] use np.testing.assert_array_equal instead of self.assertTrue(np.array_equal(...)) (#44947)
    
    * automatically fix
    
    * update comments
    
    * numpy -> np
    
    * self.assertEqual(..., True)
    
    * wrong usage (err_msg=True)
    
    这不是修复导致的错误,这些是原来 `self.assertTrue(..., True)`
    的错误用法,因此在修复后将其认为位置参数 `err_msg`
    
    * some missing fix
    93c5c887
test_optimizer.py 58.9 KB