py.test的垃圾收集插件
项目描述
py.test的垃圾收集插件。
安装
使用以下命令安装插件
$ pip install pytest-gc
用法
此插件有一些使用选项
使用 gc-disable 禁用运行测试时的自动垃圾收集。
使用 gc-threshold 选项设置垃圾收集阈值。
此外,使用 gc-scope 设置插件的固定作用域,默认为 function。
例如,如果您想更改测试运行的gc阈值,只需输入
$ pytest --gc-threshold 5 7 8 --gc-scope session
注意
此插件的仓库位于 https://github.com/vtitor/pytest-gc。
有关py.test的更多信息,请参阅 https://pytest.cn。
项目详情
关闭
pytest-gc-0.0.1.tar.gz的散列值
算法 | 散列摘要 | |
---|---|---|
SHA256 | 642be65333d46b38bb4c4484cb756265be04842016b5deeed2dfbbd5fe445e2c |
|
MD5 | ae4bd4fbbec3a4cfb405cb66998752f9 |
|
BLAKE2b-256 | 569c31a3d054a3f1effb1d3e9bd6acf367de540a73e1b039311877e5adf0d2f5 |