By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,548 Members | 1,495 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,548 IT Pros & Developers. It's quick & easy.


P: n/a
I've just read the 'Automating testing with doctest' pycon paper, and I'm
exited about the future of doctest.

This simple script reads the ctypes docs written in StructuredText, and
runs and tests the code examples in it:

import doctest

ex = doctest._extract_examples(file("tutorial.stx").rea d())
doctest._run_examples(ex, {}, 0, "tutorial.stx", 0, 0)

Do I understand correctly that the doctest-pretty printer will
eventually remove the remaining 'warts', ie that doctest complains about
the address part in this? And is it already available somewhere?
class X(object): pass .... x = X()
<__main__.X object at 0x008FA3F0>

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.