This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author danb37
Recipients
Date 2007-02-01.19:20:32
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
If a nested function has doctests, they won't be run:
{{{
def f():
  '''
  >>> 'a'
  'a'
  '''

  def g():
    '''
    >>> 'a'
    'b'
    '''
    pass

  pass
}}}

DocTestFinder will only find f's doctest and won't recurse to find g's, surprising the programmer when they (hopefully) discover that their inner doctest is incorrect!
History
Date User Action Args
2007-08-23 15:56:28adminlinkissue1650090 messages
2007-08-23 15:56:28admincreate