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
74adbaa7
Commit
74adbaa7
authored
13 years ago
by
Nadeem Vawda
Browse files
Options
Browse Files
Download
Plain Diff
Merge: Fix ResourceWarnings in test_subprocess.
parents
2736c5d4
0d7cda3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Lib/test/test_subprocess.py
Lib/test/test_subprocess.py
+4
-0
No files found.
Lib/test/test_subprocess.py
View file @
74adbaa7
...
...
@@ -1501,6 +1501,8 @@ class POSIXProcessTestCase(BaseTestCase):
'time.sleep(0.2)'
],
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
self
.
addCleanup
(
p
.
stdout
.
close
)
self
.
addCleanup
(
p
.
stderr
.
close
)
ident
=
id
(
p
)
pid
=
p
.
pid
del
p
...
...
@@ -1518,6 +1520,8 @@ class POSIXProcessTestCase(BaseTestCase):
'time.sleep(3)'
],
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
self
.
addCleanup
(
p
.
stdout
.
close
)
self
.
addCleanup
(
p
.
stderr
.
close
)
ident
=
id
(
p
)
pid
=
p
.
pid
del
p
...
...
This diff is collapsed.
Click to expand it.
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