From 5c3b1999a162d6b1434e9746717f293ea24462aa Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 1 Dec 2008 14:08:59 -0500 Subject: [PATCH] Fixed some erroneous "no test suite" messages in test.py. --- test.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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)) -- 2.26.2