[tor-commits] [stem/master] Testing our examples via doctest
atagar at torproject.org
atagar at torproject.org
Sun Oct 27 18:13:00 UTC 2013
commit c0e20264548d1566501eb2a38b2df4ddeabba87c
Merge: 1c853f2 f3d6063
Author: Damian Johnson <atagar at torproject.org>
Date: Sun Oct 27 11:02:01 2013 -0700
Testing our examples via doctest
Exercising our interpretor style examples (ones with a '>>>') via python's
doctest module. Sadly this does not include sphinx examples (those proceeded
with a '::'), its own doctest module might do the trick...
http://sphinx-doc.org/ext/doctest.html
... but I'm not clear if or how we can tie that into our unit tests. For now
putting it on our backlog...
https://trac.torproject.org/10036
stem/control.py | 6 +--
stem/descriptor/router_status_entry.py | 2 +-
stem/exit_policy.py | 4 +-
stem/util/conf.py | 4 +-
stem/util/connection.py | 4 +-
stem/version.py | 2 +-
test/settings.cfg | 3 +-
test/unit/doctest.py | 90 ++++++++++++++++++++++++++++++++
8 files changed, 103 insertions(+), 12 deletions(-)
More information about the tor-commits
mailing list