From 249607949d5eab11e63e52cbac65e8a68327d593 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 7 Nov 2014 19:31:21 -0500 Subject: 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(). --- src/mailman/testing/mta.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mailman/testing/mta.py') 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) -- cgit v1.2.3-70-g09d2