aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rw-r--r--test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test.py b/test.py
index 57091c7..81674cf 100644
--- a/test.py
+++ b/test.py
@@ -27,7 +27,10 @@ if len(sys.argv) > 1:
print "Module \"%s\" has no test suite" % submodname
mod = plugin.get_plugin("becommands", submodname)
if mod is not None:
- suite.addTest(doctest.DocTestSuite(mod))
+ if hasattr(mod, "suite"):
+ suite.addTest(mod.suite)
+ else:
+ suite.addTest(doctest.DocTestSuite(mod))
match = True
if not match:
print "No modules match \"%s\"" % submodname