Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

The garbage collector plugin for py.test

Project description

https://travis-ci.org/vtitor/pytest-gc.svg?branch=master

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

This version
History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pytest-gc-0.0.1.tar.gz (2.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page