From: W. Trevor King Date: Mon, 1 Dec 2008 19:08:59 +0000 (-0500) Subject: Fixed some erroneous "no test suite" messages in test.py. X-Git-Tag: 1.0.0~94^2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5c3b1999a162d6b1434e9746717f293ea24462aa;p=be.git Fixed some erroneous "no test suite" messages in test.py. --- diff --git a/test.py b/test.py index ef876ba..1f1ffcf 100644 --- a/test.py +++ b/test.py @@ -19,11 +19,12 @@ if len(sys.argv) > 1: for submodname in sys.argv[1:]: match = False mod = plugin.get_plugin("libbe", submodname) - if mod is not None and hasattr(mod, "suite"): - suite.addTest(mod.suite) - match = True - else: - print "Module \"%s\" has no test suite" % submodname + if mod is not None: + if hasattr(mod, "suite"): + suite.addTest(mod.suite) + match = True + else: + print "Module \"%s\" has no test suite" % submodname mod = plugin.get_plugin("becommands", submodname) if mod is not None: suite.addTest(doctest.DocTestSuite(mod))