[Bug 832404] [NEW] Test failing: test_accepted_message_gets_posted

Public bug reported: This test seems to be failing on both Ubuntu 11.04 with Python 2.7.1 and Centos 6 with Python 2.6.5: Failure in test test_accepted_message_gets_posted (mailman.app.tests.test_moderation.TestModeration) Traceback (most recent call last): File "/usr/lib/python2.7/unittest/case.py", line 321, in run testMethod() File "/home/sgoss/launchpad/mailman/src/mailman/app/tests/test_moderation.py", line 99, in test_accepted_message_gets_posted """) File "/usr/lib/python2.7/unittest/case.py", line 503, in assertEqual assertion_func(first, second, msg=msg) File "/usr/lib/python2.7/unittest/case.py", line 496, in _baseAssertEqual raise self.failureException(msg) AssertionError: 'From: anne@example.com\nTo: test@example.com\nMessage-ID: <alpha>\nX-Mailman-Approved-At: Mon, 01 Aug 2005 07:49:23 -0700\nSubject: [Test] hold me\nX-BeenThere: test@example.com\nPrecedence: list\nList-Id: <test.example.com>\nX-Message-ID-Hash: XZ3DGG4V37BZTTLXNUX4NABB4DNQHTCP\nList-Post: <mailto:test@example.com>\nList-Subscribe: <http://lists.example.com/listinfo/test@example.com>,\n <mailto:test-join@example.com>\nArchived-At: http://lists.example.com/archives/XZ3DGG4V37BZTTLXNUX4NABB4DNQHTCP\nList-Unsubscribe: <http://lists.example.com/listinfo/test@example.com>,\n <mailto:test-leave@example.com>\nList-Archive: <http://lists.example.com/archives/test@example.com>\nList-Help: <mailto:test-request@example.com?subject=help>\nX-MailFrom: test-bounces@example.com\nX-RcptTo: bart@example.com\n\n' != u'From: anne@example.com\nTo: test@example.com\nMessage-ID: <alpha>\nX-Mailman-Approved-At: Mon, 01 Aug 2005 07:49:23 -0400\nSubject: [Test] hold me\nX-BeenThere: test@example.com\nPrecedence: list\nList-Id: <test.example.com>\nX-Message-ID-Hash: XZ3DGG4V37BZTTLXNUX4NABB4DNQHTCP\nList-Post: <mailto:test@example.com>\nList-Subscribe: <http://lists.example.com/listinfo/test@example.com>,\n\t<mailto:test-join@example.com>\nArchived-At: http://lists.example.com/archives/XZ3DGG4V37BZTTLXNUX4NABB4DNQHTCP\nList-Unsubscribe: <http://lists.example.com/listinfo/test@example.com>,\n\t<mailto:test-leave@example.com>\nList-Archive: <http://lists.example.com/archives/test@example.com>\nList-Help: <mailto:test-request@example.com?subject=help>\nX-MailFrom: test-bounces@example.com\nX-RcptTo: bart@example.com\n\n' ** Affects: mailman Importance: Undecided Status: New ** Tags: mailman3 ** Tags added: mailman3 -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/832404 Title: Test failing: test_accepted_message_gets_posted To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/832404/+subscriptions

Although it's difficult to see (Python 2.7 will make it easier), the problem is that the timezone in X-Mailman-Approved-At doesn't match. D'oh! ** Changed in: mailman Milestone: None => 3.0.0a8 ** Changed in: mailman Assignee: (unassigned) => Barry Warsaw (barry) ** Changed in: mailman Importance: Undecided => High ** Changed in: mailman Status: New => Confirmed -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/832404 Title: Test failing: test_accepted_message_gets_posted To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/832404/+subscriptions

** Changed in: mailman Status: Confirmed => Fix Committed -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/832404 Title: Test failing: test_accepted_message_gets_posted To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/832404/+subscriptions

** Changed in: mailman Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/832404 Title: Test failing: test_accepted_message_gets_posted To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/832404/+subscriptions
participants (2)
-
Barry Warsaw
-
Stephen A. Goss