﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
611,Use pytest for running tests,jaraco@…,cmlenz,"I'm working on a branch to support a unified codebase for Python 2 and 3 (https://github.com/jaraco/genshi/tree/feature/py3-native). One problem I'm up against is the doctests failing thus:

{{{
File ""/Users/jaraco/Dropbox/code/public/genshi/genshi/util.py"", line 207, in genshi.util.stripentities
Failed example:
    stripentities('1 &lt; 2 &hellip;', keepxmlentities=True)
Expected:
    u'1 &lt; 2 …'
Got:
    '1 &lt; 2 …'
}}}

Pytest has a solution for this (https://docs.pytest.org/en/latest/doctest.html), a plugin for doctest that allows unicode to match even on Python 2 where the 'u' prefixes text strings.

Pytest also brings lots of nice features for test discovery, fixtures, and other nice features.

Could Genshi adopt pytest as its test runner?",enhancement,new,major,0.8,General,0.7,,,
