[issue4899] doctest should support fixtures

David W. Lambert report at bugs.python.org
Tue Jan 13 19:04:00 CET 2009


David W. Lambert <lambertdw at corning.com> added the comment:

For unittests I recommend two things instead of need for doctest change.
A decoupled strict test to prove that the iterator works, and this class
to publish,

class Tped_use_cases(...):

    def test_Marker_iteration(self):

        '''
            Illustrative code adapted from what is now your doctest
        '''

    ...

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4899>
_______________________________________


More information about the Python-bugs-list mailing list