Public bug reported:
The test program reports an error if it detects an existing mailman.cfg:
Failure in test test_current_working_directory (mailman.tests.test_configfile.TestConfigFileSearch) Traceback (most recent call last): File "/usr/lib/python2.6/unittest.py", line 279, in run testMethod() File "/root/mailman/src/mailman/tests/test_configfile.py", line 107, in test_current_working_directory self.assertEqual(found, config_file) File "/usr/lib/python2.6/unittest.py", line 350, in failUnlessEqual (msg or '%r != %r' % (first, second)) AssertionError: '/etc/mailman.cfg' != u'/tmp/tmpVfAIyB/home/alex/mailman/hacking/mailman.cfg'
I believe it should not do this. It should either silently ignore the difference or use the test mailman.cfg or ... but not break.
** Affects: mailman Importance: Undecided Status: New
** Tags: 3.0 mailman
** Changed in: mailman Milestone: None => 3.0.0a6
Do you by any chance have $MAILMAN_CONFIG_FILE environment variable set? That's the only way I can see triggering this failure. Still that should not cause test failures because tests should not be dependent on the environment. I'll fix that.
r6897
** Changed in: mailman Status: New => Fix Committed
** Changed in: mailman Status: Fix Committed => Confirmed
** Changed in: mailman Assignee: (unassigned) => Barry Warsaw (barry)
** Changed in: mailman Importance: Undecided => Medium
** Changed in: mailman Status: Confirmed => Fix Committed
** Branch linked: lp:mailman
Well spotted. I have it set on the machine: p@mailman:~$ set | grep MAILMAN_CONFIG_FILE MAILMAN_CONFIG_FILE=/etc/mailman.cfg
** Branch unlinked: lp:mailman