mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
#25328: add missing raise keyword in decode_data+SMTPUTF8 check.
This is a relatively benign bug, since having both be true was correctly rejected at in SMTPServer even before this patch. Patch by Xiang Zhang.
This commit is contained in:
parent
5ae56919ab
commit
1a815389cc
3 changed files with 11 additions and 2 deletions
|
@ -313,6 +313,12 @@ class SMTPDChannelTest(unittest.TestCase):
|
|||
DummyDispatcherBroken, BrokenDummyServer,
|
||||
(support.HOST, 0), ('b', 0), decode_data=True)
|
||||
|
||||
def test_decode_data_and_enable_SMTPUTF8_raises(self):
|
||||
self.assertRaises(
|
||||
ValueError, smtpd.SMTPChannel,
|
||||
self.server, self.channel.conn, self.channel.addr,
|
||||
enable_SMTPUTF8=True, decode_data=True)
|
||||
|
||||
def test_server_accept(self):
|
||||
self.server.handle_accept()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue