diff options
author | W. Trevor King <wking@drexel.edu> | 2008-12-01 14:08:59 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2008-12-01 14:08:59 -0500 |
commit | 5c3b1999a162d6b1434e9746717f293ea24462aa (patch) | |
tree | 6262b4bb0f718e0ce9a50a0356aecbeb95e26733 /test.py | |
parent | a37e4d0b047cccfa77dd60424c2958f29f4d2322 (diff) | |
download | bugseverywhere-5c3b1999a162d6b1434e9746717f293ea24462aa.tar.gz |
Fixed some erroneous "no test suite" messages in test.py.
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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)) |