diff options
| author | Abhilash Raj | 2015-08-30 16:55:30 +0530 |
|---|---|---|
| committer | Barry Warsaw | 2015-08-30 10:35:27 -0400 |
| commit | 53ab491e6688505a7c39b86826ef5ba319490601 (patch) | |
| tree | d37a162beac16ac57fdc1a3b1619b165b85e193f | |
| parent | 4fbb1cfb1cc8e7d36205d2476913736716bc852c (diff) | |
| download | mailman-53ab491e6688505a7c39b86826ef5ba319490601.tar.gz mailman-53ab491e6688505a7c39b86826ef5ba319490601.tar.zst mailman-53ab491e6688505a7c39b86826ef5ba319490601.zip | |
| -rw-r--r-- | src/mailman/handlers/tests/test_decorate.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/handlers/tests/test_decorate.py b/src/mailman/handlers/tests/test_decorate.py index d92d00624..03a4cdfb3 100644 --- a/src/mailman/handlers/tests/test_decorate.py +++ b/src/mailman/handlers/tests/test_decorate.py @@ -22,6 +22,7 @@ __all__ = [ ] import os +import shutil import tempfile import unittest @@ -65,7 +66,7 @@ This is a test message. template_dir = tempfile.mkdtemp() site_dir = os.path.join(template_dir, 'site', 'en') os.makedirs(site_dir) - config.push('templates', """ + config.push('templates', """\ [paths.testing] template_dir: {} """.format(template_dir)) @@ -75,9 +76,8 @@ This is a test message. enable: yes """) self.footer_path = os.path.join(site_dir, 'myfooter.txt') - - def cleanUp(self): self.addCleanup(shutil.rmtree, template_dir) + self.addCleanup(config.pop, 'archiver') def test_decorate_footer_with_archive_url(self): with open(self.footer_path, 'w') as fp: |
