diff options
| author | Barry Warsaw | 2014-12-17 17:37:38 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2014-12-17 17:37:38 -0500 |
| commit | 7cb8c33735fee118e65d498b362833c336c3c683 (patch) | |
| tree | b2f65b1f164e8bbfb4ad82773584f6ee3dfb736d /src/mailman/runners | |
| parent | 75ff7330c91c0fb5d5e77fc3c61259e20fca99e8 (diff) | |
| download | mailman-7cb8c33735fee118e65d498b362833c336c3c683.tar.gz mailman-7cb8c33735fee118e65d498b362833c336c3c683.tar.zst mailman-7cb8c33735fee118e65d498b362833c336c3c683.zip | |
Fix mta and lmtp tests.
Diffstat (limited to 'src/mailman/runners')
| -rw-r--r-- | src/mailman/runners/lmtp.py | 10 | ||||
| -rw-r--r-- | src/mailman/runners/tests/test_lmtp.py | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/mailman/runners/lmtp.py b/src/mailman/runners/lmtp.py index daa1e7e1c..2a685f18b 100644 --- a/src/mailman/runners/lmtp.py +++ b/src/mailman/runners/lmtp.py @@ -92,11 +92,11 @@ SUBADDRESS_QUEUES = dict( DASH = '-' CRLF = '\r\n' -ERR_451 = b'451 Requested action aborted: error in processing' -ERR_501 = b'501 Message has defects' -ERR_502 = b'502 Error: command HELO not implemented' -ERR_550 = b'550 Requested action not taken: mailbox unavailable' -ERR_550_MID = b'550 No Message-ID header provided' +ERR_451 = '451 Requested action aborted: error in processing' +ERR_501 = '501 Message has defects' +ERR_502 = '502 Error: command HELO not implemented' +ERR_550 = '550 Requested action not taken: mailbox unavailable' +ERR_550_MID = '550 No Message-ID header provided' # XXX Blech smtpd.__version__ = 'Python LMTP runner 1.0' diff --git a/src/mailman/runners/tests/test_lmtp.py b/src/mailman/runners/tests/test_lmtp.py index ccd27c829..0757ec22d 100644 --- a/src/mailman/runners/tests/test_lmtp.py +++ b/src/mailman/runners/tests/test_lmtp.py @@ -67,7 +67,7 @@ Subject: This has no Message-ID header # reasons) self.assertEqual(cm.exception.smtp_code, 550) self.assertEqual(cm.exception.smtp_error, - 'No Message-ID header provided') + b'No Message-ID header provided') def test_message_id_hash_is_added(self): self._lmtp.sendmail('anne@example.com', ['test@example.com'], """\ |
