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).
Metadata
Release files for doctest-ignore-unicode 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| doctest-ignore-unicode-0.1.2.tar.gz | 2.3 kB | Details |
Release files / doctest-ignore-unicode-0.1.2.tar.gz
| Download URL | doctest-ignore-unicode-0.1.2.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc90b2d0846477285c6b67fc4cb4d6f39fcf76d8752f4df0a241486f31512ad5
|
|
BLAKE2b-256 checksum How to use checksums |
9ab5bd095f63ad96bef0ee0d8a561a23033bcf522060f149b8c12781e12cc38a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |