Author pepoluan
Recipients Dario D'Amico, Mario Colombo, barry, pepoluan, r.david.murray, rahul-kumi, redstone-cold
Date 2020-12-31.11:09:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609412967.23.0.0403305393659.issue27820@roundup.psfhosted.org>
In-reply-to
Content
I tried adding the code below to test_smtplib.py:

    def testAUTH_LOGIN_initial_response_notok(self):
        self.serv.add_feature("AUTH LOGIN")
        smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
                            timeout=support.LOOPBACK_TIMEOUT)
        resp = smtp.login(sim_auth[0], sim_auth[1], initial_response_ok=False)
        self.assertEqual(resp, (235, b'Authentication Succeeded'))
        smtp.close()

and I ended up with:

======================================================================
ERROR: testAUTH_LOGIN_initial_response_notok (test.test_smtplib.SMTPSimTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pepoluan/projects/cpython/Lib/test/test_smtplib.py", line 1065, in testAUTH_LOGIN_initial_response_notok
    resp = smtp.login(sim_auth[0], sim_auth[1], initial_response_ok=False)
  File "/home/pepoluan/projects/cpython/Lib/smtplib.py", line 738, in login
    raise last_exception
  File "/home/pepoluan/projects/cpython/Lib/smtplib.py", line 727, in login
    (code, resp) = self.auth(
  File "/home/pepoluan/projects/cpython/Lib/smtplib.py", line 650, in auth
    raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (451, b'Internal confusion')

----------------------------------------------------------------------
History
Date User Action Args
2020-12-31 11:09:27pepoluansetrecipients: + pepoluan, barry, r.david.murray, redstone-cold, Dario D'Amico, Mario Colombo, rahul-kumi
2020-12-31 11:09:27pepoluansetmessageid: <1609412967.23.0.0403305393659.issue27820@roundup.psfhosted.org>
2020-12-31 11:09:27pepoluanlinkissue27820 messages
2020-12-31 11:09:27pepoluancreate