Add flag to ignore unicode literal prefixes in doctests
Project description
Overview
doctest-ignore-unicode is a plugin (currently only for Nose) that adds a flag to ignore unicode literal prefixes in doctests.
The implmentation is inspired by https://github.com/nltk/nltk/blob/2and3/nltk/test/doctest_nose_plugin.py
Usage
>>> def hello_world(): ... """Prints Hello World. ... ... >>> hello_world() # doctest: +IGNORE_UNICODE ... u'Hello World' ... ... """ ... print 'Hello World'
FAQ
Why?
If you need to ask you probably don’t need it. (Hint: supporting python 2 & 3 in the same codebase).
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
Close
Hashes for doctest-ignore-unicode-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b7d799e170a25348a3e6b46c26d9fc609bf5c5deed49afb9786b9c859cc1ecb |
|
MD5 | 37d979881b43a95cf5d26ae0485b6377 |
|
BLAKE2b-256 | 8bd86534c1c939727bd63028bbcd31ec9f34e65d293ba5c7001158da8b4424fb |