diff options
| author | bwarsaw | 2007-03-22 04:29:31 +0000 |
|---|---|---|
| committer | bwarsaw | 2007-03-22 04:29:31 +0000 |
| commit | 4b481c179c96440b3785ecc5a069af4d696f75a3 (patch) | |
| tree | 09f5a1723223f4e2f22bcb04daa676eb69cf8147 /Mailman/testing/base.py | |
| parent | daeb5dbf03fde77265e42392cae0913765423f94 (diff) | |
| download | mailman-4b481c179c96440b3785ecc5a069af4d696f75a3.tar.gz mailman-4b481c179c96440b3785ecc5a069af4d696f75a3.tar.zst mailman-4b481c179c96440b3785ecc5a069af4d696f75a3.zip | |
Diffstat (limited to 'Mailman/testing/base.py')
| -rw-r--r-- | Mailman/testing/base.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/testing/base.py b/Mailman/testing/base.py index 2979ad18b..8a131175e 100644 --- a/Mailman/testing/base.py +++ b/Mailman/testing/base.py @@ -118,3 +118,9 @@ class TestBase(unittest.TestCase): archives=True, quiet=True) os.unlink(self._config) os.unlink(self._dbfile) + # Clear out any site locks, which can be left over if tests fail. + for filename in os.listdir(config.LOCK_DIR): + if filename.startswith('<site>'): + path = os.path.join(config.LOCK_DIR, filename) + print >> sys.stderr, '@@@@@ removing:', path + os.unlink(path) |
