Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
380ef012
Commit
380ef012
authored
Jun 06, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #27110: Add smtpd.SMTPChannel to __all__, by Jacek Kołodziej
parent
d04d2137
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
Lib/smtpd.py
Lib/smtpd.py
+4
-1
Lib/test/test_smtpd.py
Lib/test/test_smtpd.py
+11
-0
No files found.
Lib/smtpd.py
View file @
380ef012
...
...
@@ -89,7 +89,10 @@ import collections
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'
...
...
Lib/test/test_smtpd.py
View file @
380ef012
...
...
@@ -998,5 +998,16 @@ class SMTPDChannelTestWithEnableSMTPUTF8True(unittest.TestCase):
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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment