doctest.Tester is deprecated
Michele Simionato
michele.simionato at gmail.com
Mon Sep 6 03:38:48 EDT 2004
Some time ago I hacked a custom solution to run doctests
on text files containing documentation. The solution
involved this kind of game:
tester=doctest.Tester(globs={},verbose=1)
tester.runstring(mytest)
It worked fine, but now with Python 2.4.a3 I get
DeprecationWarning: class Tester is deprecated; use class
doctest.DocTestRunner instead
The problem is that DocTestRunner is not a replacement for Tester, it
has
no runstring method!
So, how what am I supposed to do?
Michele Simionato
More information about the Python-list
mailing list