def install(html=False):
"""
Install doctestcompare for all future doctests.
If html is true, then by default the HTML parser will be used;
otherwise the XML parser is used.
"""
if html:
doctest.OutputChecker = LHTMLOutputChecker
else:
doctest.OutputChecker = LXMLOutputChecker
doctestcompare.py 文件源码
python
阅读 29
收藏 0
点赞 0
评论 0
评论列表
文章目录