Steven D'Aprano wrote:

I have a function in my module:

def selftest(verbose=False):
    import doctest
    doctest.testmod(verbose=verbose)

what happens if you change the above to

  def selftest(verbose=False):
      import doctest, yourmodule
      doctest.testmod(yourmodule, verbose=verbose)

(where yourmodule is the name of your module, obviously)

</F>

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to