[issue25328] ValueError in smtpd.py __init__() is not raised

Mauro S. M. Rodrigues report at bugs.python.org
Thu Oct 8 16:44:53 EDT 2015


Mauro S. M. Rodrigues added the comment:

Hi Barry, I was testing this and it seems to work, am I doing something wrong in order to reproduce it? I've used the same parameters from the unit tests

Python 3.5.0+ (3.5:1e99ba6b7c98, Oct  8 2015, 17:12:06) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import smtpd
>>> smtpd.SMTPServer(("127.0.0.1", 0), ('b',0),enable_SMTPUTF8=True,decode_data=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/maurosr/dev/cpython/Lib/smtpd.py", line 645, in __init__
    raise ValueError("The decode_data and enable_SMTPUTF8"
ValueError: The decode_data and enable_SMTPUTF8 parameters cannot be set to True at the same time.

----------
nosy: +maurosr

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25328>
_______________________________________


More information about the Python-bugs-list mailing list