This issue is related to 8739 . As pointed in http://bugs.python.org/issue8739#msg155385, « tests are in the form FooTest instead of TestFoo, smtpd imports modules used only in __main__, warnings can be handled the appropriate module, __import__ shall not be used » and, as bitdancer said in http://bugs.python.org/issue8739#msg153244 «there are no tests for the smtpd command line functionality» Also, note that currently the main has a bug: s/options\.max_message_size/size_limit/
On Sun, Jun 29, 2014 at 03:15:44PM +0000, Mark Lawrence wrote: > > Mark Lawrence added the comment: > > @Michele as 8739 has been implemented would you like to put up a patch for this? No, but setting keyword "easy" could help for future contributions.
I'm closing this as won't fix since smtpd.py is deprecated and will likely not get any future development. Please see aiosmtpd as a much better third party replacement.