X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/fbcfb25715ddbb522c8efac3faec1eca4811683d..06638b8da63effe8cc24af0a6a13745583262dcf:/tests/alltests diff --git a/tests/alltests b/tests/alltests index 4e3f64d..812b53a 100755 --- a/tests/alltests +++ b/tests/alltests @@ -40,6 +40,8 @@ import dtest # call dtest.run tests = [] for f in os.listdir(testdir): + if f == 'dtest.py': # special case + continue r = re.search("^(.*)\\.py$", f) if r is not None: isTest = False @@ -54,12 +56,8 @@ for f in os.listdir(testdir): tests.sort() # let's have a consistent order for test in tests: - print "Test '%s'" % test - m = __import__(test) - dtest.run(getattr(m, "test"), - setup=getattr(m, "setup", None), - report=False, - name=test) + print "-------- Test '%s' --------" % test + dtest.run(test, report=False) print "%d tests" % dtest.tests if dtest.failures: