doctest.Tester is deprecated
Michele Simionato
michele.simionato at gmail.com
Mon Sep 6 03:38:48 EDT 2004
More information about the Python-list mailing list
Mon Sep 6 03:38:48 EDT 2004
- Previous message (by thread): doctest.Tester is deprecated
- Next message (by thread): os.popen4 and popen2.popen4 undocumented behavior
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): doctest.Tester is deprecated
- Next message (by thread): os.popen4 and popen2.popen4 undocumented behavior
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list