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
6c527cf3
Commit
6c527cf3
authored
Dec 07, 2013
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19857: Make sure that test_imaplib reaps server threads even in face of
error upon client disconnection.
parent
933142a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
Lib/test/test_imaplib.py
Lib/test/test_imaplib.py
+6
-7
No files found.
Lib/test/test_imaplib.py
View file @
6c527cf3
...
...
@@ -210,13 +210,12 @@ class BaseThreadedNetworkedTests(unittest.TestCase):
@
contextmanager
def
reaped_pair
(
self
,
hdlr
):
server
,
thread
=
self
.
make_server
((
support
.
HOST
,
0
),
hdlr
)
client
=
self
.
imap_class
(
*
server
.
server_address
)
try
:
yield
server
,
client
finally
:
client
.
logout
()
self
.
reap_server
(
server
,
thread
)
with
self
.
reaped_server
(
hdlr
)
as
server
:
client
=
self
.
imap_class
(
*
server
.
server_address
)
try
:
yield
server
,
client
finally
:
client
.
logout
()
@
reap_threads
def
test_connect
(
self
):
...
...
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