This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
What does it do? Fixes line numbers so you can easily figure out where your doctest is failing, also fixes
the list command in pdb so it can properly list the source code for your doctest.

Other things may be broken so please send feedback.

add to your $HOME/.pdbrc:

import doctestpdbhacks

Here's an example of what it does:

$ cat doctesttest.py
def foo(a):
"""
>>> foo(1)
2
>>> import pdb; pdb.set_trace()
>>> foo(2)
2
"""
return a + 1

def _test():
import doctest
doctest.testmod()

if __name__ == "__main__":
_test()

# without doctestpdbhacks

$ python doctesttest.py
> <doctest __main__.foo[1]="">(1)?()->None
-> import pdb; pdb.set_trace()
(Pdb) l
1 -> import pdb; pdb.set_trace()
[EOF]

# Turn on doctestpdbhacks:

$ echo >>$HOME/.pdbrc "import doctestpdbhacks"
$ python doctesttest.py
--Return--
> doctest @ doctesttest.py(5)?()->None
-> >>> import pdb; pdb.set_trace()
(Pdb) l
1 def foo(a):
2 """
3 >>> foo(1)
4 2
5 -> >>> import pdb; pdb.set_trace()
6 >>> foo(2)
7 2
8 """
9 return a + 1
10
11 def _test():
Release History

Release History

0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
doctestpdbhacks-0.1-py2.4.egg (3.8 kB) Copy SHA256 Checksum SHA256 2.4 Egg Sep 26, 2008
doctestpdbhacks-0.1.tar.gz (2.1 kB) Copy SHA256 Checksum SHA256 Source Sep 26, 2008

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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