提交 149e6717 authored 作者: Frederic's avatar Frederic

Allow other file to reuse tensor/tests/test_basic.py:MakeTester

上级 7f4d9667
...@@ -219,7 +219,8 @@ def makeTester(name, op, expected, checks=None, good=None, bad_build=None, ...@@ -219,7 +219,8 @@ def makeTester(name, op, expected, checks=None, good=None, bad_build=None,
def setUp(self): def setUp(self):
# Verify that the test's name is correctly set. # Verify that the test's name is correctly set.
assert eval(self.__class__.__name__) is self.__class__ # Some tests reuse it outside this module.
eval(self.__class__.__module__ + '.' + self.__class__.__name__)
# We keep a list of temporary files created in add_memmap_values, # We keep a list of temporary files created in add_memmap_values,
# to remove them at the end of the test. # to remove them at the end of the test.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论