提交 dc9ac109 authored 作者: notoraptor's avatar notoraptor 提交者: GitHub

Merge pull request #6299 from nouiz/fix_test

Fix test broken in gh-6285
...@@ -39,6 +39,7 @@ install: ...@@ -39,6 +39,7 @@ install:
- pip install flake8-future-import parameterized sphinx_rtd_theme - pip install flake8-future-import parameterized sphinx_rtd_theme
# nose-exclude plugin allow us to tell nosetests to exclude folder with --exclude-dir=path/to/directory. # nose-exclude plugin allow us to tell nosetests to exclude folder with --exclude-dir=path/to/directory.
- pip install nose-exclude nose-timer - pip install nose-exclude nose-timer
- conda install --yes -q scipy=0.14.0 # Try to reinstall it to fix the problem
jobs: jobs:
include: include:
......
...@@ -9,7 +9,8 @@ floatX = 'float32' ...@@ -9,7 +9,8 @@ floatX = 'float32'
def test_graph_opt_caching(): def test_graph_opt_caching():
opt_db_file = os.path.join(theano.config.compiledir, 'optimized_graphs.pkl') opt_db_file = os.path.join(theano.config.compiledir, 'optimized_graphs.pkl')
os.remove(opt_db_file) if os.path.exists(opt_db_file):
os.remove(opt_db_file)
mode = theano.config.mode mode = theano.config.mode
if mode in ["DEBUG_MODE", "DebugMode"]: if mode in ["DEBUG_MODE", "DebugMode"]:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论