摘要:
# coding=utf-8import unittestfrom inspect import isfunctiondef usage(): """also unittest.__dict__""" print(unittest.__all__)def stdout_writeText(): su 阅读全文
posted @ 2019-11-18 15:41
不带R的墨菲特
阅读(516)
评论(0)
推荐(0)
摘要:
解决方案一直接改unittest源代码: 把排序240行逻辑注释掉,237行获取成员方法按照dict方法替换原有的dir() 方法 验证效果: 比较猥琐的解决方案2 获取成员变量class.__dict__.keys() filter过滤符合要求成员,由于3.x成员dict属性是支持有序的 # co 阅读全文
posted @ 2019-11-18 15:17
不带R的墨菲特
阅读(366)
评论(2)
推荐(0)


浙公网安备 33010602011771号