提交 73131c59 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Remove KnownFailure decorator on tests that are now working.

上级 7b92003c
......@@ -2993,10 +2993,6 @@ class T_tensorfromscalar(unittest.TestCase):
self.assertTrue(isinstance(v, numpy.ndarray))
self.assertTrue(v.shape == (), v.shape)
@dec.knownfailureif(
isinstance(get_default_mode(),theano.compile.debugmode.DebugMode),
("This test fails in DEBUG_MODE, but the generated code is OK. "
"It is actually a problem of DEBUG_MODE, see #624."))
def test1(self):
s = scal.constant(56)
t = as_tensor_variable(s)
......@@ -3015,10 +3011,6 @@ class T_tensorfromscalar(unittest.TestCase):
self.assertTrue(eval_outputs([g])==1)
class T_scalarfromtensor(unittest.TestCase):
@dec.knownfailureif(
isinstance(get_default_mode(),theano.compile.debugmode.DebugMode),
("This test fails in DEBUG_MODE, but the generated code is OK. "
"It is actually a problem of DEBUG_MODE, see #625."))
def test0(self):
tt = constant(56)#scal.constant(56)
ss = scalar_from_tensor(tt)
......
......@@ -8,7 +8,6 @@ from theano import function
import numpy
from numpy import array
from numpy.testing import dec
from theano import config
from theano.tests import unittest_tools as utt
......@@ -168,11 +167,6 @@ class T_extending(unittest.TestCase):
fn = lambda x, y: x / y)
@dec.knownfailureif(
isinstance(theano.compile.mode.get_default_mode(),
theano.compile.debugmode.DebugMode),
("This test fails in DEBUG_MODE, but the generated code is OK. "
"It is actually a problem of DEBUG_MODE, see #625"))
def test_extending_2(self):
'''
This test fails in DebugMode for the same reasons the test in
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论