aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-03 20:16:56 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-03 20:16:56 -0500
commitdc5ac53feb42841c48fe0a17a699aa96f5bb39c8 (patch)
treeb9ab22dcb7e911e2818d4836df13882f98de0f38 /libbe
parentc4a9b465fb512fdfa2d43ece22c786b021d8c2ce (diff)
downloadbugseverywhere-dc5ac53feb42841c48fe0a17a699aa96f5bb39c8.tar.gz
Remove _test() functions from plugin.py and cmdutil.py.
Testing should be handled through test.py, not by calling per-module _test() functions.
Diffstat (limited to 'libbe')
-rw-r--r--libbe/cmdutil.py8
-rw-r--r--libbe/plugin.py7
2 files changed, 0 insertions, 15 deletions
diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py
index e37750d..78645ab 100644
--- a/libbe/cmdutil.py
+++ b/libbe/cmdutil.py
@@ -293,12 +293,4 @@ def bug_comment_from_id(bdir, id):
raise UserError(e.message)
return (bug, comm)
-def _test():
- import doctest
- import sys
- doctest.testmod()
-
-if __name__ == "__main__":
- _test()
-
suite = doctest.DocTestSuite()
diff --git a/libbe/plugin.py b/libbe/plugin.py
index bd9bb65..e6b06fb 100644
--- a/libbe/plugin.py
+++ b/libbe/plugin.py
@@ -69,10 +69,3 @@ if plugin_path not in sys.path:
sys.path.append(plugin_path)
suite = doctest.DocTestSuite()
-
-def _test():
- import doctest
- doctest.testmod()
-
-if __name__ == "__main__":
- _test()