X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/92e05dd95e96c03599e48cfa01ca900c41a15afa..7b32e917cba7c78d74297b2aefaf823ed262a921:/tests/dtest.py diff --git a/tests/dtest.py b/tests/dtest.py index edf793b..d4e3472 100644 --- a/tests/dtest.py +++ b/tests/dtest.py @@ -307,7 +307,12 @@ def run(module=None, report=True): name = module.__name__ # Open the error log global errs - errs = open("%s.log" % name, "w") + logfile = "%s.log" % name + try: + os.remove(logfile) + except: + pass + errs = open(logfile, "a") # Ensure that disorder.py uses the test installation disorder._configfile = "%s/config" % testroot disorder._userconf = False