zopefoundation / zope.testing

Other
4 stars 13 forks source link

Make sure Doctestcase __file__ attributes start with 'test' #7

Closed jimfulton closed 9 years ago

jimfulton commented 9 years ago

This fixes a problem with the previous pull request. Unlike unittest and py.test, nose selects test class members based on name attribute (rather than on class dictionary keys). After we added setting name based on file or setup function names, I was finding that lots of tests were no-longer being run. (Some wouldn't have run with unittest's or pt.test's runners either). This PR adds a 'test_' prefix is name doesn't start with 'test'.

mgedmin commented 9 years ago

:+1: LGTM