提交 1d639d66 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Merge pull request #1587 from nouiz/fix_test

Skip a test with python 2.4
......@@ -2653,6 +2653,8 @@ class test_shapeoptimizer(unittest.TestCase):
import theano.sandbox.cuda as cuda
if not cuda.cuda_available:
raise SkipTest("cuda not available")
if sys.version_info[:2] < (2, 5):
raise SkipTest("Test skipped due to a too old python")
pkl_filename = os.path.join(os.path.dirname(theano.__file__),
'tensor', 'tests', 'shape_opt_cycle.pkl')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论