Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

pytest-dev/pytest-faulthandler

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

pytest-faulthandler

Plugin for pytest that automatically enables the faulthandler module during tests.

Inspired by the nose faulthandler plugin.

This plugin is now part of pytest core since pytest 5.0, so users should not install this plugin together with that pytest version.

Version 2.0.0 of this package is a dummy package for pytest 5.0 compatibility.

Usage

The plugin is always active by default, but you can disable it by passing --no-faulthandler to py.test.

Options:

  • --faulthandler-timeout=TIMEOUT: Dump the traceback of all threads if a test takes more than TIMEOUT seconds to finish.

Requirements

  • Python 2.7+, Python 3.4+
  • pytest
  • faulthandler (Python 2.7)

Install

Install using pip:

$ pip install pytest-faulthandler

Change Log

Please consult the CHANGELOG.