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!

Doctests on Python 2 & 3

Project Description

DocSix is a tool which helps you run your doctests under both Python 2 and Python 3 (specifically 3.3 and later).

DocSix works by stripping unicode indicators from expected test output before running the test on Python 3.

To use DocSix, simply pass it the list of files to execute tests on:

>>> import unittest
>>> from docsix import get_doctest_suite
>>> suite = get_doctest_suite(['testdoc.rst'])
>>> unittest.TextTestRunner(verbosity=2).run(suite)
<unittest.runner.TextTestResult run=1 errors=0 failures=0>

News

0.1

Release date: 17-Feb-2014

  • Support for Sphinx testcode block
  • Support for stripping unicode indicators from output strings in doctests.
Release History

Release History

This version
History Node

0.1

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
docsix-0.1.tar.gz (2.6 kB) Copy SHA256 Checksum SHA256 Source Feb 19, 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