Fix test_smtplib by munging asynchat some more.

This commit is contained in:
Thomas Wouters 2007-08-31 00:20:14 +00:00
parent 828f04ac3f
commit 74e68c751f
2 changed files with 12 additions and 3 deletions

View file

@ -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()