summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-12 22:13:13 -0700
committerBarry Warsaw2012-03-12 22:13:13 -0700
commit7ec68d7ad54e54878520a4adcffd335bac7b37e5 (patch)
tree42204dabc5ff3b942d07b8b42bd8d6d8880d24a0
parentb725360062b08a422f337b272bdbb56b7a41f51d (diff)
downloadmailman-7ec68d7ad54e54878520a4adcffd335bac7b37e5.tar.gz
mailman-7ec68d7ad54e54878520a4adcffd335bac7b37e5.tar.zst
mailman-7ec68d7ad54e54878520a4adcffd335bac7b37e5.zip
-rw-r--r--src/mailman/app/tests/test_moderation.py7
-rw-r--r--src/mailman/docs/NEWS.rst2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/mailman/app/tests/test_moderation.py b/src/mailman/app/tests/test_moderation.py
index dea2f5918..bc324faea 100644
--- a/src/mailman/app/tests/test_moderation.py
+++ b/src/mailman/app/tests/test_moderation.py
@@ -17,10 +17,11 @@
"""Moderation tests."""
-from __future__ import absolute_import, unicode_literals
+from __future__ import absolute_import, print_function, unicode_literals
__metaclass__ = type
__all__ = [
+ 'TestModeration',
]
@@ -79,8 +80,8 @@ Message-ID: <alpha>
self.assertTrue('x-peer' in message)
# The X-Mailman-Approved-At header has local timezone information in
# it, so test that separately.
- self.assertEqual(message['x-mailman-approved-at'][:-4],
- 'Mon, 01 Aug 2005 07:49:23 -')
+ self.assertEqual(message['x-mailman-approved-at'][:-5],
+ 'Mon, 01 Aug 2005 07:49:23 ')
del message['x-mailman-approved-at']
# The Message-ID matches the original.
self.assertEqual(message['message-id'], '<alpha>')
diff --git a/src/mailman/docs/NEWS.rst b/src/mailman/docs/NEWS.rst
index a7e4a49ea..1dbc58eaa 100644
--- a/src/mailman/docs/NEWS.rst
+++ b/src/mailman/docs/NEWS.rst
@@ -98,6 +98,8 @@ Bug fixes
(LP: #872391)
* Fixed bogus use of `bounce_processing` attribute (should have been
`process_bounces`, with thanks to Vincent Fretin. (LP: #876774)
+ * Fix `test_moderation` for timezones East of UTC+0000, given by blacktav.
+ (LP: #890675)
3.0 alpha 8 -- "Where's My Thing?"