Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Find slow test setUp/tearDown

Project Description

Nose can report test execution time in its various output formats but it doesn’t include the setUp or tearDown time, which can be substantial.


  1. pip install nose-congestion
  2. nosetests --with-congestion


After all of the tests complete, a simple table will be printed:

Location                                       Total    setUp tearDown
module.tests.FastTests                         7.187    1.659    0.000
module.tests.SlowTests                         0.047    0.002    0.000

  Total  Location
  0.104  module.tests.SlowTests.test_method
  0.009  module.tests.FastTests.test_method


  • nose
  • Python 2.6+, Python 3.3+

Release History

This version
History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(2.8 kB) Copy SHA256 Hash SHA256
Source Mar 26, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting