提交 b249b5f2 authored 作者: Frederic's avatar Frederic

Skip a test with python 2.6

上级 5a024d83
import os import os
import pickle import pickle
import sys
import unittest import unittest
from nose.plugins.skip import SkipTest
import theano import theano
from theano.compat.six import PY3 from theano.compat.six import PY3
from theano.gof import CachedConstantError, FunctionGraph from theano.gof import CachedConstantError, FunctionGraph
...@@ -34,6 +37,8 @@ class TFunctionGraph(unittest.TestCase): ...@@ -34,6 +37,8 @@ class TFunctionGraph(unittest.TestCase):
This test run the pickle that reproduce this case. This test run the pickle that reproduce this case.
""" """
if sys.version_info[:2] < (2, 7):
raise SkipTest("This test need python 2.7 or more recent.")
with open(os.path.join(os.path.dirname(__file__), with open(os.path.join(os.path.dirname(__file__),
'test_fg_old_crash.pkl'), 'test_fg_old_crash.pkl'),
'rb') as f: 'rb') as f:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论