提交 2a029470 authored 作者: Cesar Laurent's avatar Cesar Laurent

Skip python 2.6 old test interface.

上级 ac2657f4
...@@ -845,6 +845,8 @@ class TestDownsampleFactorMax(utt.InferShapeTester): ...@@ -845,6 +845,8 @@ class TestDownsampleFactorMax(utt.InferShapeTester):
utt.assert_allclose(var_dx, fix_dx) utt.assert_allclose(var_dx, fix_dx)
def test_old_pool_interface(self): def test_old_pool_interface(self):
if sys.version_info[0] != 3:
raise SkipTest('Skip old pool interface with python 2.x')
# 1. Load the old version # 1. Load the old version
testfile_dir = os.path.dirname(os.path.realpath(__file__)) testfile_dir = os.path.dirname(os.path.realpath(__file__))
fname = 'old_pool_interface.pkl' fname = 'old_pool_interface.pkl'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论