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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docsix-0.1.tar.gz
(2.6 kB
view details)
File details
Details for the file docsix-0.1.tar.gz
.
File metadata
- Download URL: docsix-0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0c5b7e4c6fc5b33f37ab3c168fcd3207b766fefc01f7065d4a12f38774c8dcb |
|
MD5 | 111fd6f002206902e2297fac736848bc |
|
BLAKE2b-256 | 41b56c72e285c8ea2d0a7f7b56693dee25dec93aa9fb2e1ff55a285c32c60312 |