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
f7f1bb7f
Commit
f7f1bb7f
authored
Mar 03, 2005
by
Peter Astrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only run extensive subprocess tests if -usubprocess to regrtest is specified. Fixes #1124637
parent
23109f00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
Lib/test/regrtest.py
Lib/test/regrtest.py
+3
-1
Lib/test/test_subprocess.py
Lib/test/test_subprocess.py
+4
-3
No files found.
Lib/test/regrtest.py
View file @
f7f1bb7f
...
...
@@ -93,6 +93,8 @@ resources to test. Currently only the following are defined:
in the standard library and test suite. This takes
a long time.
subprocess Run all tests for the subprocess module.
To enable all resources except one, use '-uall,-<resource>'. For
example, to run all the tests except for the bsddb tests, give the
option '-uall,-bsddb'.
...
...
@@ -136,7 +138,7 @@ if sys.platform == 'darwin':
from
test
import
test_support
RESOURCE_NAMES
=
(
'audio'
,
'curses'
,
'largefile'
,
'network'
,
'bsddb'
,
'decimal'
,
'compiler'
)
'decimal'
,
'compiler'
,
'subprocess'
)
def
usage
(
code
,
msg
=
''
):
...
...
Lib/test/test_subprocess.py
View file @
f7f1bb7f
...
...
@@ -382,9 +382,10 @@ class ProcessTestCase(unittest.TestCase):
def
test_no_leaking
(
self
):
# Make sure we leak no resources
max_handles
=
1026
# too much for most UNIX systems
if
mswindows
:
max_handles
=
65
# a full test is too slow on Windows
if
test_support
.
is_resource_enabled
(
"subprocess"
)
and
not
mswindows
:
max_handles
=
1026
# too much for most UNIX systems
else
:
max_handles
=
65
for
i
in
range
(
max_handles
):
p
=
subprocess
.
Popen
([
sys
.
executable
,
"-c"
,
"import sys;sys.stdout.write(sys.stdin.read())"
],
...
...
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