[Python-checkins] cpython: Issue #27110: Add smtpd.SMTPChannel to __all__, by Jacek Kołodziej
martin.panter
python-checkins at python.org
Sun Jun 5 22:30:51 EDT 2016
https://hg.python.org/cpython/rev/bcc0c3fd4a40
changeset: 101765:bcc0c3fd4a40
user: Martin Panter <vadmium+py at gmail.com>
date: Mon Jun 06 02:03:11 2016 +0000
summary:
Issue #27110: Add smtpd.SMTPChannel to __all__, by Jacek Kołodziej
files:
Lib/smtpd.py | 5 ++++-
Lib/test/test_smtpd.py | 11 +++++++++++
2 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/Lib/smtpd.py b/Lib/smtpd.py
--- a/Lib/smtpd.py
+++ b/Lib/smtpd.py
@@ -89,7 +89,10 @@
from warnings import warn
from email._header_value_parser import get_addr_spec, get_angle_addr
-__all__ = ["SMTPServer","DebuggingServer","PureProxy","MailmanProxy"]
+__all__ = [
+ "SMTPChannel", "SMTPServer", "DebuggingServer", "PureProxy",
+ "MailmanProxy",
+]
program = sys.argv[0]
__version__ = 'Python SMTP proxy version 0.3'
diff --git a/Lib/test/test_smtpd.py b/Lib/test/test_smtpd.py
--- a/Lib/test/test_smtpd.py
+++ b/Lib/test/test_smtpd.py
@@ -998,5 +998,16 @@
self.write_line(b'test\r\n.')
self.assertEqual(self.channel.socket.last[0:3], b'250')
+
+class MiscTestCase(unittest.TestCase):
+ def test__all__(self):
+ blacklist = {
+ "program", "Devnull", "DEBUGSTREAM", "NEWLINE", "COMMASPACE",
+ "DATA_SIZE_DEFAULT", "usage", "Options", "parseargs",
+
+ }
+ support.check__all__(self, smtpd, blacklist=blacklist)
+
+
if __name__ == "__main__":
unittest.main()
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list