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

Pytest plugin for trepan debugger.

Project Description

Abstract

A pytest plugin for running the trepan debugger

Using

After installing, to set a breakpoint to enter the trepan debugger:

import pytest
def test_function():
    ...
    pytest.trepan()    # get thee into the debugger!
    x = 1
    ...

The above will look like it is stopped at the pytest.trepan() call. This is most useful when this is the last statement of a scope. If you want to stop instead before x = 1 pass immediate=False or just False:

import pytest
def test_function():
    ...
    pytest.trepan(immediate=False)
    # same as py.trepan(False)
    x = 1
    ...

You can also pass as keyword arguments any parameter accepted by trepan.api.debug().

To have the debugger entered on error, use the --trepan option:

$ py.test --trepan ...

Project Details

Release History

Release History

This version
History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pytest_trepan-1.0.1-py2.7.egg (7.4 kB) Copy SHA256 Checksum SHA256 2.7 Egg Jul 19, 2017
pytest_trepan-1.0.1-py2.py3-none-any.whl (5.9 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Jul 19, 2017
pytest_trepan-1.0.1-py3.4.egg (7.5 kB) Copy SHA256 Checksum SHA256 3.4 Egg Jul 19, 2017
pytest_trepan-1.0.1-py3.5.egg (7.5 kB) Copy SHA256 Checksum SHA256 3.5 Egg Jul 19, 2017
pytest_trepan-1.0.1-py3.6.egg (7.4 kB) Copy SHA256 Checksum SHA256 3.6 Egg Jul 19, 2017
pytest-trepan-1.0.1.tar.gz (6.8 kB) Copy SHA256 Checksum SHA256 Source Jul 19, 2017

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