[Mailman-Developers] bug in tests/test_handlers.py
Stephen Willey Mats Mats
willey at washington.edu
Thu Dec 19 21:07:56 CET 2013
with http://bazaar.launchpad.net/~mailman-coders/mailman/2.1/revision/1376
“
Setting digest_size_threshhold to zero now means no digests will be
sent based on size instead of a digest being sent with every post.
“
tests/test_handlers.py sets digest_size_threshhold to 0. I assume this is an attempt to force the digest send. But now 0 means ‘no digest’. Below is my proposed patch to trick ToDigest into sending.
steve
--- /usr/local/mailman/tests/test_handlers.py.old 2013-12-19 11:57:09.745503688 -0800
+++ /usr/local/mailman/tests/test_handlers.py 2013-12-19 11:26:18.325853268 -0800
@@ -1880,7 +1880,7 @@ Here is message %(i)d
msg = self._makemsg(99)
print msg
size = os.path.getsize(self._path) + len(str(msg))
- mlist.digest_size_threshhold = 0
+ mlist.digest_size_threshhold = .001
ToDigest.process(mlist, msg, {})
files = self._sb.files()
# There should be two files in the queue, one for the MIME digest and
More information about the Mailman-Developers
mailing list