------------------------------------------------------------
revno: 1300
committer: Mark Sapiro <[email protected]>
branch nick: 2.2
timestamp: Thu 2013-12-19 18:35:09 -0800
message:
Fixed a few failing tests in tests/test_handlers.py.
modified:
NEWS
tests/test_handlers.py
--
lp:mailman/2.2
https://code.launchpad.net/~mailman-coders/mailman/2.2
Your team Mailman Checkins is subscribed to branch lp:mailman/2.2.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'NEWS'
--- NEWS 2013-12-14 00:55:41 +0000
+++ NEWS 2013-12-20 02:35:09 +0000
@@ -53,6 +53,8 @@
Bug Fixes and other patches
+ - Fixed a few failing tests in tests/test_handlers.py. (LP: #1262950)
+
- Fixed bin/arch to not create scrubbed attachments for messages skipped
when processing the --start= option. (LP: #1260883)
=== modified file 'tests/test_handlers.py'
--- tests/test_handlers.py 2011-04-13 04:11:54 +0000
+++ tests/test_handlers.py 2013-12-20 02:35:09 +0000
@@ -704,7 +704,7 @@
'<http://www.dom.ain/mailman/listinfo/_xtest>,'
'\n\t<mailto:[email protected]?subject=subscribe>')
eq(msg['list-post'], '<mailto:[email protected]>')
- eq(msg['list-archive'], '<http://www.dom.ain/pipermail/_xtest>')
+ eq(msg['list-archive'], '<http://www.dom.ain/pipermail/_xtest/>')
def test_list_headers_with_description(self):
eq = self.assertEqual
@@ -1221,7 +1221,8 @@
""")
MimeDel.process(self._mlist, msg, {})
eq(msg.get_content_type(), 'text/plain')
- eq(msg.get_payload(), '\n\n\n')
+ #eq(msg.get_payload(), '\n\n\n')
+ eq(msg.get_payload().strip(), '')
def test_deep_structure(self):
eq = self.assertEqual
@@ -1878,7 +1879,9 @@
mlist = self._mlist
msg = self._makemsg(99)
size = os.path.getsize(self._path) + len(str(msg))
- mlist.digest_size_threshhold = 0
+ # Set digest_size_threshhold to a very small value to force a digest.
+ # Setting to zero no longer works.
+ mlist.digest_size_threshhold = 0.001
ToDigest.process(mlist, msg, {})
files = self._sb.files()
# There should be two files in the queue, one for the MIME digest and
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org