我们从Python开源项目中,提取了以下6个代码示例,用于说明如何使用timeit.__doc__()。
def test_main_help(self): s = self.run_main(switches=['-h']) # Note: It's not clear that the trailing space was intended as part of # the help text, but since it's there, check for it. self.assertEqual(s, timeit.__doc__ + ' ')
def test_main_help(self): s = self.run_main(switches=['-h']) self.assertEqual(s, timeit.__doc__)