From 6ebd29504f204913a1c57f64d802151fc97bfb41 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 22 Feb 2010 10:29:50 -0500 Subject: Fix the test on Mac OS X. I am not proud of this. --- src/mailman/tests/test_configfile.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mailman/tests/test_configfile.py') 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): -- cgit v1.2.3-70-g09d2