diff options
| author | Barry Warsaw | 2010-02-22 10:29:50 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2010-02-22 10:29:50 -0500 |
| commit | 6ebd29504f204913a1c57f64d802151fc97bfb41 (patch) | |
| tree | 709dba73ade6da3c83e72fe03233ab42286d5ca7 /src/mailman/tests/test_configfile.py | |
| parent | b008112245064f5dbdbe4104c9a3e89694c75cfc (diff) | |
| download | mailman-6ebd29504f204913a1c57f64d802151fc97bfb41.tar.gz mailman-6ebd29504f204913a1c57f64d802151fc97bfb41.tar.zst mailman-6ebd29504f204913a1c57f64d802151fc97bfb41.zip | |
Diffstat (limited to 'src/mailman/tests/test_configfile.py')
| -rw-r--r-- | src/mailman/tests/test_configfile.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mailman/tests/test_configfile.py b/src/mailman/tests/test_configfile.py index cf3a03e3d..ea393ca38 100644 --- a/src/mailman/tests/test_configfile.py +++ b/src/mailman/tests/test_configfile.py @@ -101,7 +101,11 @@ class TestConfigFileSearch(TestConfigFileBase): with open(os.path.join(fake_testdir, 'mailman.cfg'), 'w') as fp: print >> fp, '# Fake mailman.cfg file' with chdir(fake_testdir): - self.assertEqual(search_for_configuration_file(), config_file) + # Split off any /private prefix imposed by Mac OS X. + found = search_for_configuration_file() + if found.startswith('/private'): + found = found[8:] + self.assertEqual(found, config_file) class TestConfigFileSearchWithChroot(TestConfigFileBase): |
