diff options
author | Thomas Wouters <thomas@python.org> | 2007-08-31 00:20:14 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2007-08-31 00:20:14 (GMT) |
commit | 74e68c751f148d6d41dd74d004ff19f05e244859 (patch) | |
tree | 83768a0add6224dfeb2741269b673eb2967002e7 /Lib/test/test_smtplib.py | |
parent | 828f04ac3f0dd3b68b4dbf42a79ebb846d1de568 (diff) | |
download | cpython-74e68c751f148d6d41dd74d004ff19f05e244859.zip cpython-74e68c751f148d6d41dd74d004ff19f05e244859.tar.gz cpython-74e68c751f148d6d41dd74d004ff19f05e244859.tar.bz2 |
Fix test_smtplib by munging asynchat some more.
Diffstat (limited to 'Lib/test/test_smtplib.py')
-rw-r--r-- | Lib/test/test_smtplib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py index e0dcc86..00c3ad4 100644 --- a/Lib/test/test_smtplib.py +++ b/Lib/test/test_smtplib.py @@ -405,8 +405,8 @@ class SMTPSimTests(TestCase): self.assertEqual(smtp.vrfy(email), expected_known) u = 'nobody@nowhere.com' - expected_unknown = (550, bytes('No such user: %s' - % smtplib.quoteaddr(u))) + expected_unknown = (550, ('No such user: %s' + % smtplib.quoteaddr(u)).encode('ascii')) self.assertEqual(smtp.vrfy(u), expected_unknown) smtp.quit() |