doctest x idle problem?

Jon Schull jonschull at yahoo.com
Wed Jul 25 21:06:35 CEST 2001


If I run "python doctest.py" from the command line (win2K) doctest
does what I'd expect (which in this case is nothing).

If I load doctest.py into idle and go "Edit| Run Script" I get
something similar(a blank line)
But if I go "Edit| Run Script" again, I get a Whole Bunch of Stuff
(and doctest seems not be testing docstrings).  Is there a right way
to have doctest and idle coexist?

Here follows a Whole Bunch of Stuff ....
*** Tester.merge: 'doctest.testmod' in both testers; summing outcomes.
*** Tester.merge: 'doctest.Tester.run__test__' in both testers;
summing outcomes.
*** Tester.merge: 'doctest.Tester.rundict' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.__test__._TestClass.get' in both testers;
summing outcomes.
*** Tester.merge: 'doctest.run_docstring_examples' in both testers;
summing outcomes.
*** Tester.merge: 'doctest.Tester' in both testers; summing outcomes.
*** Tester.merge: 'doctest' in both testers; summing outcomes.
*** Tester.merge: 'doctest.Tester.__init__' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.Tester.runstring' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.Tester.merge' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.__test__._TestClass' in both testers;
summing outcomes.
*** Tester.merge: 'doctest.is_private' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.__test__.string' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.__test__._TestClass.__init__' in both
testers; summing outcomes.
*** Tester.merge: 'doctest.__test__._TestClass.square' in both
testers; summing outcomes.
*** Tester.merge: 'doctest.Tester.rundoc' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.Tester.summarize' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.testmod' in both testers; summing outcomes.
*** Tester.merge: 'doctest.Tester.run__test__' in both testers;
summing outcomes.
*** Tester.merge: 'doctest.Tester.rundict' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.__test__._TestClass.get' in both testers;
summing outcomes.
*** Tester.merge: 'doctest.run_docstring_examples' in both testers;
summing outcomes.
*** Tester.merge: 'doctest.Tester' in both testers; summing outcomes.
*** Tester.merge: 'doctest' in both testers; summing outcomes.
*** Tester.merge: 'doctest.Tester.__init__' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.Tester.runstring' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.Tester.merge' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.__test__._TestClass' in both testers;
summing outcomes.
*** Tester.merge: 'doctest.is_private' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.__test__.string' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.__test__._TestClass.__init__' in both
testers; summing outcomes.
*** Tester.merge: 'doctest.__test__._TestClass.square' in both
testers; summing outcomes.
*** Tester.merge: 'doctest.Tester.rundoc' in both testers; summing
outcomes.
*** Tester.merge: 'doctest.Tester.summarize' in both testers; summing
outcomes.



More information about the Python-list mailing list