polish test error

This commit is contained in:
Dun Liang 2021-03-24 22:06:27 +08:00
parent cd3319edf4
commit 4af7280342
3 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,7 @@
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
# ***************************************************************
__version__ = '1.2.2.56'
__version__ = '1.2.2.57'
from . import lock
with lock.lock_scope():
ori_int = int

View File

@ -137,7 +137,7 @@ class TestSlice(unittest.TestCase):
def test_vary_shape_setitem(self):
a = jt.array([1,2,3,4,5])
b = jt.array([1,2,3,4,5])
c = jt.where(b>3)
c = tuple(jt.where(b>3))
a[c] = 0
assert (a.data == [1,2,3,0,0]).all()

View File

@ -260,7 +260,6 @@ static unordered_set<string> unary_ops = {
>>> jt.sinh(a)
jt.Var([ 0.3349012 -0.77276015 -0.9873369 2.9425898 ], dtype=float32)
*/
// @pybind(asin, arcsin)
"sinh",
/**