[Python-checkins] python/dist/src/Lib/test regrtest.py, 1.165,
1.165.2.1 test_subprocess.py, 1.15.2.1, 1.15.2.2
astrand at users.sourceforge.net
astrand at users.sourceforge.net
Thu Mar 3 21:51:35 CET 2005
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10490/Lib/test
Modified Files:
Tag: release24-maint
regrtest.py test_subprocess.py
Log Message:
Only run extensive subprocess tests if -usubprocess to regrtest is specified. Fixes #1124637
Index: regrtest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/regrtest.py,v
retrieving revision 1.165
retrieving revision 1.165.2.1
diff -u -d -r1.165 -r1.165.2.1
--- regrtest.py 13 Nov 2004 11:13:35 -0000 1.165
+++ regrtest.py 3 Mar 2005 20:51:32 -0000 1.165.2.1
@@ -93,6 +93,8 @@
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 @@
from test import test_support
RESOURCE_NAMES = ('audio', 'curses', 'largefile', 'network', 'bsddb',
- 'decimal', 'compiler')
+ 'decimal', 'compiler', 'subprocess')
def usage(code, msg=''):
Index: test_subprocess.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_subprocess.py,v
retrieving revision 1.15.2.1
retrieving revision 1.15.2.2
diff -u -d -r1.15.2.1 -r1.15.2.2
--- test_subprocess.py 5 Dec 2004 20:05:04 -0000 1.15.2.1
+++ test_subprocess.py 3 Mar 2005 20:51:32 -0000 1.15.2.2
@@ -343,9 +343,10 @@
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())"],
More information about the Python-checkins
mailing list