summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Sapiro2017-02-13 00:20:18 -0800
committerMark Sapiro2017-02-19 17:44:16 -0800
commit1bde5f4b0f91831b22ebba135dc361ad9d622b3e (patch)
tree710ca6d854f7ec077def1fde82395d891f8fca51 /src
parent8f414b7e9b95e4148359b35109daf0fb16d2d933 (diff)
downloadmailman-1bde5f4b0f91831b22ebba135dc361ad9d622b3e.tar.gz
mailman-1bde5f4b0f91831b22ebba135dc361ad9d622b3e.tar.zst
mailman-1bde5f4b0f91831b22ebba135dc361ad9d622b3e.zip
Diffstat (limited to 'src')
-rw-r--r--src/mailman/app/tests/test_lifecycle.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mailman/app/tests/test_lifecycle.py b/src/mailman/app/tests/test_lifecycle.py
index ec7d2b771..3730291da 100644
--- a/src/mailman/app/tests/test_lifecycle.py
+++ b/src/mailman/app/tests/test_lifecycle.py
@@ -53,11 +53,12 @@ class TestLifecycle(unittest.TestCase):
# This list create should succeed but log an error
mlist = create_list('test@example.com')
# Check the error log.
- self.assertEqual(
- mark.readline()[-83:-1],
- 'Bad config.mailman.listname_chars setting: '
- '[a-z0-9-+\]: '
- 'unterminated character set'
+ self.assertRegex(
+ mark.readline()[-93:-1],
+ '^.*Bad config\.mailman\.listname_chars setting: '
+ '\[a-z0-9-\+\\\]: '
+ '(unterminated character set|'
+ 'unexpected end of regular expression)$'
)
# Remove the list.
remove_list(mlist)