doctest-ignore-unicode is a plugin (currently only for Nose) that adds a flag to ignore unicode literal prefixes in doctests. WWW: https://pypi.python.org/pypi/doctest-ignore-unicode