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

skip test for python version that don't have hashlib.

上级 4b439eaf
...@@ -6,6 +6,8 @@ import numpy as np ...@@ -6,6 +6,8 @@ import numpy as np
import theano import theano
from theano.printing import var_descriptor from theano.printing import var_descriptor
from cStringIO import StringIO from cStringIO import StringIO
from nose.plugins.skip import SkipTest
from theano import config from theano import config
from theano import shared from theano import shared
...@@ -23,6 +25,11 @@ def test_determinism_1(): ...@@ -23,6 +25,11 @@ def test_determinism_1():
# change. # change.
# This specific script is capable of catching a bug where # This specific script is capable of catching a bug where
# FunctionGraph.toposort was non-deterministic. # FunctionGraph.toposort was non-deterministic.
try:
import hashlib
except ImportError:
raise SkipTest('python version too old to do this test')
def run(replay, log=None): def run(replay, log=None):
if not replay: if not replay:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论