[Bug 543618] [NEW] test breaks if existing mailman.cfg is found
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 -- test breaks if existing mailman.cfg is found https://bugs.launchpad.net/bugs/543618 You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman.
** Changed in: mailman Milestone: None => 3.0.0a6 -- test breaks if existing mailman.cfg is found https://bugs.launchpad.net/bugs/543618 You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman.
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. -- test breaks if existing mailman.cfg is found https://bugs.launchpad.net/bugs/543618 You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman.
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 -- test breaks if existing mailman.cfg is found https://bugs.launchpad.net/bugs/543618 You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman.
** Branch linked: lp:mailman -- test breaks if existing mailman.cfg is found https://bugs.launchpad.net/bugs/543618 You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman.
Well spotted. I have it set on the machine: p@mailman:~$ set | grep MAILMAN_CONFIG_FILE MAILMAN_CONFIG_FILE=/etc/mailman.cfg -- test breaks if existing mailman.cfg is found https://bugs.launchpad.net/bugs/543618 You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman.
** Branch unlinked: lp:mailman -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/543618 Title: test breaks if existing mailman.cfg is found To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/543618/+subscriptions
participants (4)
-
Barry Warsaw
-
Launchpad Bug Tracker
-
Patrick Ben Koetter
-
Pavan Koli