The garbage collector plugin for py.test
Project description
The garbage collector plugin for py.test.
Installation
Install the plugin with:
$ pip install pytest-gc
Usage
There are a few options to use this plugin:
Disable automatic garbage collection when running tests with gc-disable.
Set the garbage collection thresholds using gc-threshold option.
Also, set the scope for the plugin’s fixtures with gc-scope, default function.
So, for example, if you wanna change the gc thresholds for test run, just type:
$ pytest --gc-threshold 5 7 8 --gc-scope session
Notes
The repository of this plugin is at https://github.com/vtitor/pytest-gc.
For more info on py.test see http://pytest.org.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-gc-0.0.1.tar.gz
(2.0 kB
view details)
File details
Details for the file pytest-gc-0.0.1.tar.gz
.
File metadata
- Download URL: pytest-gc-0.0.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 642be65333d46b38bb4c4484cb756265be04842016b5deeed2dfbbd5fe445e2c |
|
MD5 | ae4bd4fbbec3a4cfb405cb66998752f9 |
|
BLAKE2b-256 | 569c31a3d054a3f1effb1d3e9bd6acf367de540a73e1b039311877e5adf0d2f5 |