def check_doc(self, filename, subdir=None, name=None):
if self.verbose:
print("--- %s: Run tests" % filename)
if not subdir:
fullpath = os.path.join('..', 'doc', filename)
else:
fullpath = os.path.join(subdir, filename)
failure, nb_test = doctest.testfile(
fullpath, optionflags=doctest.ELLIPSIS, name=name)
if failure:
self.fail("error")
if self.verbose:
print("--- %s: End of tests" % filename)
评论列表
文章目录