Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

doctest-ignore-unicode-0.1.2.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file doctest-ignore-unicode-0.1.2.tar.gz.

File metadata

File hashes

Hashes for doctest-ignore-unicode-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fc90b2d0846477285c6b67fc4cb4d6f39fcf76d8752f4df0a241486f31512ad5
MD5 ba64fe1ef48e8ed68d9ac9a9a03d0c65
BLAKE2b-256 9ab5bd095f63ad96bef0ee0d8a561a23033bcf522060f149b8c12781e12cc38a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page