Skip to content

Add support for unicode literals to #710

Closed
@pytestbot

Description

@pytestbot

Originally reported by: Jason R. Coombs (BitBucket: jaraco, GitHub: jaraco)


I like to use doctests for some use cases, and pytest makes inclusion of them in tests suites quite elegant.

However, doctests have a particularly hard problem with Python2/3 compatibility (because unicode strings render as u'' in Python 2 and '' in Python 3).

The NLTK project has built a nose plugin to better support the disparity.

I'd like to see pytest support this functionality as well.


Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueeasy issue that is friendly to new contributorplugin: doctestsrelated to the doctests builtin plugintype: enhancementnew feature or API change, should be merged into features branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions