About Anaconda Help Download Anaconda

magonser / packages / doctest-ignore-unicode 0.1.2

Add flag to ignore unicode literal prefixes in doctests

Installers

  • osx-64 v0.1.2

conda install

To install this package run one of the following:
conda install magonser::doctest-ignore-unicode

Description

Overview

doctest-ignore-unicode is a plugin (currently only for Nose_) that adds a flag to ignore unicode literal prefixes in doctests.

.. _Nose: http://somethingaboutorange.com/mrl/projects/nose

The implmentation is inspired by https://github.com/nltk/nltk/blob/2and3/nltk/test/doctestnoseplugin.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).


© 2025 Anaconda, Inc. All Rights Reserved. (v4.2.0) Legal | Privacy Policy