ports/mail/mailman3/files/patch-src_mailman_tests_test__configfile.py
Steve Wills 4f871c3925 mail/mailman3: create port
Mailman is free software for managing electronic mail discussion
and e-newsletter lists. Mailman is integrated with the web, making
it easy for users to manage their accounts and for list owners to
administer their lists. Mailman supports built-in archiving, automatic
bounce processing, content filtering, digest delivery, spam filters,
and more.

WWW: http://www.list.org/

PR:		225543
Submitted by:	Charlie Li <ml+freebsd@vishwin.info> (with changes from pi)
2020-09-21 15:43:19 +00:00

24 lines
1.1 KiB
Python

--- src/mailman/tests/test_configfile.py.orig 2017-11-16 05:50:21 UTC
+++ src/mailman/tests/test_configfile.py
@@ -161,8 +161,8 @@ class TestConfigFileSearchWithChroot(TestConfigFileBas
self.assertEqual(search_for_configuration_file(), config_file)
def test_etc_file(self):
- # Test /etc/mailman.cfg
- fake_etc = '/etc'
+ # Test /usr/local/etc/mailman.cfg
+ fake_etc = '/usr/local/etc'
fake_testdir = self._make_fake(fake_etc)
config_file = os.path.join(fake_etc, 'mailman.cfg')
with fakedirs(fake_testdir):
@@ -172,8 +172,8 @@ class TestConfigFileSearchWithChroot(TestConfigFileBas
self.assertEqual(search_for_configuration_file(), config_file)
def test_etc_mailman3_file(self):
- # Test /etc/mailman3/mailman.cfg
- fake_etc = '/etc/mailman3'
+ # Test /usr/local/etc/mailman3/mailman.cfg
+ fake_etc = '/usr/local/etc/mailman3'
fake_testdir = self._make_fake(fake_etc)
config_file = os.path.join(fake_etc, 'mailman.cfg')
with fakedirs(fake_testdir):