Skip to main content

Add flag to ignore unicode literal prefixes in doctests

Project description


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


>>> def hello_world():
...     return 'Hello World'
>>> hello_world()  # doctest: +IGNORE_UNICODE
u'Hello World'



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.

Files for doctest-ignore-unicode, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size doctest-ignore-unicode-0.1.2.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page