提交 da84e9f2 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed test-suite error caused by nosetests trying to run a method that was not…

Fixed test-suite error caused by nosetests trying to run a method that was not intended to be a test by itself
上级 d540c62f
......@@ -425,7 +425,7 @@ class test_IsInf_IsNan(unittest.TestCase):
self.mode = copy(self.mode)
self.mode.check_isfinite = False
def run_test(self, isfunc):
def run_isfunc(self, isfunc):
for input in (self.scalar, self.vector):
theano_isfunc = theano.function([input],
getattr(tensor, isfunc)(input),
......@@ -439,10 +439,10 @@ class test_IsInf_IsNan(unittest.TestCase):
assert (theano_isfunc(x) == numpy_isfunc(x)).all()
def test_isinf(self):
return self.run_test('isinf')
return self.run_isfunc('isinf')
def test_isnan(self):
return self.run_test('isnan')
return self.run_isfunc('isnan')
if __name__ == '__main__':
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论