def test_rst(name):
failure_count, test_count = doctest.testfile(os.path.join(EX, name + '.rst'),
globs={'meta': meta, 'pprint': pprint}, module_relative=False)
if name in ('datetime_now', 'property_codec_json'):
return
if name == 'codec' and PY2:
return
assert failure_count == 0
评论列表
文章目录