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
c50cccfc
Commit
c50cccfc
authored
Sep 10, 2016
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_eintr: Fix ResourceWarning warnings
parent
e103aaca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Lib/test/eintrdata/eintr_tester.py
Lib/test/eintrdata/eintr_tester.py
+5
-0
No files found.
Lib/test/eintrdata/eintr_tester.py
View file @
c50cccfc
...
...
@@ -83,6 +83,9 @@ class OSEINTRTest(EINTRBaseTest):
processes
=
[
self
.
new_sleep_process
()
for
_
in
range
(
num
)]
for
_
in
range
(
num
):
wait_func
()
# Call the Popen method to avoid a ResourceWarning
for
proc
in
processes
:
proc
.
wait
()
def
test_wait
(
self
):
self
.
_test_wait_multiple
(
os
.
wait
)
...
...
@@ -94,6 +97,8 @@ class OSEINTRTest(EINTRBaseTest):
def
_test_wait_single
(
self
,
wait_func
):
proc
=
self
.
new_sleep_process
()
wait_func
(
proc
.
pid
)
# Call the Popen method to avoid a ResourceWarning
proc
.
wait
()
def
test_waitpid
(
self
):
self
.
_test_wait_single
(
lambda
pid
:
os
.
waitpid
(
pid
,
0
))
...
...
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