summaryrefslogtreecommitdiff
path: root/src/mailman/testing
diff options
context:
space:
mode:
authorBarry Warsaw2014-11-07 19:31:21 -0500
committerBarry Warsaw2014-11-07 19:31:21 -0500
commit249607949d5eab11e63e52cbac65e8a68327d593 (patch)
treec1ffefd2968aae1c040ec322ac918d5adfb4a5db /src/mailman/testing
parent1d9f6970b9a26ee576838b53f485b96365e3a6c2 (diff)
downloadmailman-249607949d5eab11e63e52cbac65e8a68327d593.tar.gz
mailman-249607949d5eab11e63e52cbac65e8a68327d593.tar.zst
mailman-249607949d5eab11e63e52cbac65e8a68327d593.zip
Tox-ify the test suite. Now you don't have to create a virtualenv separately.
To do this, we have to handle random test ordering, since tox explicitly sets PYTHONHASHSEED. That's a good thing for the future Python 3 port. Removed `mailman conf -t/--sort`; now the output is always sorted. RFC 2369 headers are now sorted before being added. etag repr dicts are sorted using pprint.pformat().
Diffstat (limited to 'src/mailman/testing')
-rw-r--r--src/mailman/testing/mta.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mailman/testing/mta.py b/src/mailman/testing/mta.py
index 7481e0093..875647485 100644
--- a/src/mailman/testing/mta.py
+++ b/src/mailman/testing/mta.py
@@ -161,6 +161,11 @@ class ConnectionCountingServer(QueueServer):
log.info('[ConnectionCountingServer] accepted: %s', address)
StatisticsChannel(self, connection, address)
+ def process_message(self, peer, mailfrom, rcpttos, data):
+ # Provide a guaranteed order to recpttos.
+ QueueServer.process_message(
+ self, peer, mailfrom, sorted(rcpttos), data)
+
def reset(self):
"""See `lazr.smtp.server.Server`."""
QueueServer.reset(self)