提交 0f4be8d9 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

No docstrings for tests.

上级 db809a2a
...@@ -32,14 +32,11 @@ class TFunctionGraph(unittest.TestCase): ...@@ -32,14 +32,11 @@ class TFunctionGraph(unittest.TestCase):
pickle.loads(s) pickle.loads(s)
def test_node_outputs_not_used(self): def test_node_outputs_not_used(self):
"""In the past, we where removing some not used variable from # In the past, we where removing some not used variable from
fgraph.variables event if the apply had other output used in # fgraph.variables event if the apply had other output used in
the graph. This caused a crash. # the graph. This caused a crash.
This test run the pickle that reproduce this case. # This test run the pickle that reproduce this case.
"""
if sys.version_info[:2] < (2, 7):
raise SkipTest("This test need python 2.7 or more recent.")
with open(os.path.join(os.path.dirname(__file__), with open(os.path.join(os.path.dirname(__file__),
'test_fg_old_crash.pkl'), 'test_fg_old_crash.pkl'),
'rb') as f: 'rb') as f:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论