提交 8424685e authored 作者: Francesco's avatar Francesco

Merge pull request #4142 from taesupkim/issue_4054

fix flake8 'd3viz/tests/*py'
from nose.plugins.skip import SkipTest
from theano.d3viz.formatting import pydot_imported
if not pydot_imported:
raise SkipTest('Missing requirements')
import numpy as np import numpy as np
import os.path as pt import os.path as pt
import tempfile import tempfile
...@@ -14,6 +8,11 @@ import theano as th ...@@ -14,6 +8,11 @@ import theano as th
import theano.d3viz as d3v import theano.d3viz as d3v
from theano.d3viz.tests import models from theano.d3viz.tests import models
from nose.plugins.skip import SkipTest
from theano.d3viz.formatting import pydot_imported
if not pydot_imported:
raise SkipTest('Missing requirements')
class TestD3Viz(unittest.TestCase): class TestD3Viz(unittest.TestCase):
......
from nose.plugins.skip import SkipTest
from theano.d3viz.formatting import pydot_imported
if not pydot_imported:
raise SkipTest('Missing requirements')
import numpy as np import numpy as np
import unittest import unittest
...@@ -11,6 +5,11 @@ import theano as th ...@@ -11,6 +5,11 @@ import theano as th
from theano.d3viz.formatting import PyDotFormatter from theano.d3viz.formatting import PyDotFormatter
from theano.d3viz.tests import models from theano.d3viz.tests import models
from nose.plugins.skip import SkipTest
from theano.d3viz.formatting import pydot_imported
if not pydot_imported:
raise SkipTest('Missing requirements')
class TestPyDotFormatter(unittest.TestCase): class TestPyDotFormatter(unittest.TestCase):
......
...@@ -176,9 +176,7 @@ whitelist_flake8 = [ ...@@ -176,9 +176,7 @@ whitelist_flake8 = [
"gof/unify.py", "gof/unify.py",
"gof/__init__.py", "gof/__init__.py",
"gof/sandbox/equilibrium.py", "gof/sandbox/equilibrium.py",
"d3viz/__init__.py", "d3viz/__init__.py"
"d3viz/tests/test_d3viz.py",
"d3viz/tests/test_formatting.py"
] ]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论