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
54bd49d4
Commit
54bd49d4
authored
Mar 20, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Plain Diff
Merge: #5712: Preemptively fix some other possible timing issues.
parents
a686ed7d
03b0116c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_smtplib.py
Lib/test/test_smtplib.py
+3
-3
No files found.
Lib/test/test_smtplib.py
View file @
54bd49d4
...
@@ -668,12 +668,12 @@ class SimSMTPChannel(smtpd.SMTPChannel):
...
@@ -668,12 +668,12 @@ class SimSMTPChannel(smtpd.SMTPChannel):
if
self
.
rcpt_response
is
None
:
if
self
.
rcpt_response
is
None
:
super
().
smtp_RCPT
(
arg
)
super
().
smtp_RCPT
(
arg
)
return
return
self
.
push
(
self
.
rcpt_response
[
self
.
rcpt_count
])
self
.
rcpt_count
+=
1
self
.
rcpt_count
+=
1
self
.
push
(
self
.
rcpt_response
[
self
.
rcpt_count
-
1
])
def
smtp_RSET
(
self
,
arg
):
def
smtp_RSET
(
self
,
arg
):
super
().
smtp_RSET
(
arg
)
self
.
rset_count
+=
1
self
.
rset_count
+=
1
super
().
smtp_RSET
(
arg
)
def
smtp_DATA
(
self
,
arg
):
def
smtp_DATA
(
self
,
arg
):
if
self
.
data_response
is
None
:
if
self
.
data_response
is
None
:
...
@@ -853,7 +853,7 @@ class SMTPSimTests(unittest.TestCase):
...
@@ -853,7 +853,7 @@ class SMTPSimTests(unittest.TestCase):
with
self
.
assertRaises
(
smtplib
.
SMTPSenderRefused
):
with
self
.
assertRaises
(
smtplib
.
SMTPSenderRefused
):
smtp
.
sendmail
(
'John'
,
'Sally'
,
'test message'
)
smtp
.
sendmail
(
'John'
,
'Sally'
,
'test message'
)
self
.
assertIsNone
(
smtp
.
sock
)
self
.
assertIsNone
(
smtp
.
sock
)
self
.
assertEqual
(
self
.
serv
.
_SMTPchannel
.
r
cp
t_count
,
0
)
self
.
assertEqual
(
self
.
serv
.
_SMTPchannel
.
r
se
t_count
,
0
)
def
test_421_from_rcpt_cmd
(
self
):
def
test_421_from_rcpt_cmd
(
self
):
smtp
=
smtplib
.
SMTP
(
HOST
,
self
.
port
,
local_hostname
=
'localhost'
,
timeout
=
15
)
smtp
=
smtplib
.
SMTP
(
HOST
,
self
.
port
,
local_hostname
=
'localhost'
,
timeout
=
15
)
...
...
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