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(): ... return 'Hello World' >>> hello_world() # doctest: +IGNORE_UNICODE u'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
File details
Details for the file doctest-ignore-unicode-0.1.1.tar.gz
.
File metadata
- Download URL: doctest-ignore-unicode-0.1.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 137e64707b0906e7f2f276cde1e5337ab71e8c949942127bf8388695f8ff6208 |
|
MD5 | d694c450bd8999d39978bb431f63c46c |
|
BLAKE2b-256 | bd8c48649ff85c2b890405a05df3ee481457e8770896df6553b81c532e478417 |