From dc5ac53feb42841c48fe0a17a699aa96f5bb39c8 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 3 Dec 2009 20:16:56 -0500 Subject: [PATCH] Remove _test() functions from plugin.py and cmdutil.py. Testing should be handled through test.py, not by calling per-module _test() functions. --- libbe/cmdutil.py | 8 -------- libbe/plugin.py | 7 ------- 2 files changed, 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() -- 2.26.2