提交 c9008c0e authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Fix other test on Python3

上级 1d52d9be
...@@ -7,6 +7,7 @@ from theano import config ...@@ -7,6 +7,7 @@ from theano import config
from theano import gof from theano import gof
import theano import theano
import theano.tensor import theano.tensor
from theano.compat import exc_message
from theano.compile import debugmode from theano.compile import debugmode
import theano.compile import theano.compile
from theano.tests import unittest_tools as utt from theano.tests import unittest_tools as utt
...@@ -275,7 +276,7 @@ def test_badoptimization_opt_err(): ...@@ -275,7 +276,7 @@ def test_badoptimization_opt_err():
try: try:
f([1.0, 2.0, 3.0], [2, 3, 4],) f([1.0, 2.0, 3.0], [2, 3, 4],)
except Exception, e: except Exception, e:
assert 'insert_bigger_b_add' in e.message assert 'insert_bigger_b_add' in exc_message(e)
return # TEST PASS return # TEST PASS
assert False assert False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论