doctest-ignore-unicode 0.1.2
pip install doctest-ignore-unicode
Latest version
Released:
Add flag to ignore unicode literal prefixes in doctests
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache License, Version 2.0)
- Author: Andy Kilner
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache License, Version 2.0)
- Author: Andy Kilner
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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.2.tar.gz
.
File metadata
- Download URL: doctest-ignore-unicode-0.1.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc90b2d0846477285c6b67fc4cb4d6f39fcf76d8752f4df0a241486f31512ad5 |
|
MD5 | ba64fe1ef48e8ed68d9ac9a9a03d0c65 |
|
BLAKE2b-256 | 9ab5bd095f63ad96bef0ee0d8a561a23033bcf522060f149b8c12781e12cc38a |