提交 33b437b7 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Disable flake8 test in python3 since 2to3 often breaks the format.

上级 e4011c33
...@@ -6,6 +6,7 @@ from nose.plugins.skip import SkipTest ...@@ -6,6 +6,7 @@ from nose.plugins.skip import SkipTest
import os import os
from fnmatch import fnmatch from fnmatch import fnmatch
import theano import theano
from theano.compat import PY3
try: try:
import flake8.engine import flake8.engine
import flake8.main import flake8.main
...@@ -346,6 +347,8 @@ def test_format_flake8(): ...@@ -346,6 +347,8 @@ def test_format_flake8():
""" """
if not flake8_available: if not flake8_available:
raise SkipTest("flake8 is not installed") raise SkipTest("flake8 is not installed")
if PY3:
raise SkipTest("not testing in python3 since 2to3 ran")
total_errors = 0 total_errors = 0
for path in list_files(): for path in list_files():
rel_path = os.path.relpath(path, theano.__path__[0]) rel_path = os.path.relpath(path, theano.__path__[0])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论