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
ec4cf5b1
Commit
ec4cf5b1
authored
Oct 13, 2004
by
Fredrik Lundh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't spend quite as much time looking for leaks on Windows, where
it's rather expensive to create new processes.
parent
961ee6af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Lib/test/test_subprocess.py
Lib/test/test_subprocess.py
+4
-2
No files found.
Lib/test/test_subprocess.py
View file @
ec4cf5b1
...
...
@@ -338,10 +338,12 @@ class ProcessTestCase(unittest.TestCase):
# Interpreter without universal newline support
self
.
assertEqual
(
stdout
,
"line1
\
n
line2
\
r
line3
\
r
\
n
line4
\
r
\
n
line5
\
n
line6"
)
# XXX test_no_leaking takes > a minute to run on a high-end WinXP Pro box
def
test_no_leaking
(
self
):
# Make sure we leak no resources
for
i
in
range
(
1026
):
max_handles
=
1026
# too much for most UNIX systems
if
mswindows
:
max_handles
=
65
# a full test is too slow on Windows
for
i
in
range
(
max_handles
):
p
=
subprocess
.
Popen
([
sys
.
executable
,
"-c"
,
"import sys;sys.stdout.write(sys.stdin.read())"
],
stdin
=
subprocess
.
PIPE
,
...
...
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