summaryrefslogtreecommitdiff
path: root/src/mailman/testing/helpers.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-02-29 21:35:59 -0500
committerBarry Warsaw2012-02-29 21:35:59 -0500
commitf4c95867d6ffd1460ddab328575cc35cf648f3b9 (patch)
treea0e9a3b75aa10366b1b24d41cee8e7311f8e08f5 /src/mailman/testing/helpers.py
parentbd95333e95f6867bc9b5d8daade2cfdc240d7f90 (diff)
downloadmailman-f4c95867d6ffd1460ddab328575cc35cf648f3b9.tar.gz
mailman-f4c95867d6ffd1460ddab328575cc35cf648f3b9.tar.zst
mailman-f4c95867d6ffd1460ddab328575cc35cf648f3b9.zip
Diffstat (limited to 'src/mailman/testing/helpers.py')
-rw-r--r--src/mailman/testing/helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py
index de35be8be..e61aca605 100644
--- a/src/mailman/testing/helpers.py
+++ b/src/mailman/testing/helpers.py
@@ -127,7 +127,7 @@ def get_queue_messages(queue_name, sort_on=None):
messages.append(_Bag(msg=msg, msgdata=msgdata))
queue.finish(filebase)
if sort_on is not None:
- messages.sort(key=lambda item: item.msg[sort_on])
+ messages.sort(key=lambda item: str(item.msg[sort_on]))
return messages