summaryrefslogtreecommitdiff
path: root/src/mailman/tests
diff options
context:
space:
mode:
authorBarry Warsaw2010-03-27 20:05:07 -0400
committerBarry Warsaw2010-03-27 20:05:07 -0400
commit9b3e3881f4db1de7deca487859afff22aa922324 (patch)
treed92eb2a35ecf7268e7285ddbeed1bc962bc30527 /src/mailman/tests
parent088bc1bbb2f21bdfb7df9a52fde841323263d541 (diff)
downloadmailman-9b3e3881f4db1de7deca487859afff22aa922324.tar.gz
mailman-9b3e3881f4db1de7deca487859afff22aa922324.tar.zst
mailman-9b3e3881f4db1de7deca487859afff22aa922324.zip
Diffstat (limited to 'src/mailman/tests')
-rw-r--r--src/mailman/tests/test_configfile.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mailman/tests/test_configfile.py b/src/mailman/tests/test_configfile.py
index 726ad8754..95623a785 100644
--- a/src/mailman/tests/test_configfile.py
+++ b/src/mailman/tests/test_configfile.py
@@ -76,9 +76,17 @@ class TestConfigFileBase(unittest.TestCase):
def setUp(self):
self._root = tempfile.mkdtemp()
+ # Ensure that the environment can't cause test failures.
+ self.mailman_config_file = os.environ('MAILMAN_CONFIG_FILE')
+ if self.mailman_config_file is not None:
+ del os.environ['MAILMAN_CONFIG_FILE']
def tearDown(self):
shutil.rmtree(self._root)
+ # Restore the environment, though I'm not actually sure this is
+ # necessary.
+ if self.mailman_config_file is not None:
+ os.environ['MAILMAN_CONFIG_FILE'] = self.mailman_config_file
def _make_fake(self, path):
if path.startswith('/'):