mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Fix test_smtplib by munging asynchat some more.
This commit is contained in:
parent
828f04ac3f
commit
74e68c751f
2 changed files with 12 additions and 3 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue