[Python-checkins] r47076 - python/trunk/Lib/test/test_subprocess.py
peter.astrand
python-checkins at python.org
Thu Jun 22 22:06:46 CEST 2006
Author: peter.astrand
Date: Thu Jun 22 22:06:46 2006
New Revision: 47076
Modified:
python/trunk/Lib/test/test_subprocess.py
Log:
Make it possible to run test_subprocess.py on Python 2.2, which lacks test_support.is_resource_enabled.
Modified: python/trunk/Lib/test/test_subprocess.py
==============================================================================
--- python/trunk/Lib/test/test_subprocess.py (original)
+++ python/trunk/Lib/test/test_subprocess.py Thu Jun 22 22:06:46 2006
@@ -384,7 +384,8 @@
def test_no_leaking(self):
# Make sure we leak no resources
- if test_support.is_resource_enabled("subprocess") and not mswindows:
+ if not hasattr(test_support, "is_resource_enabled") \
+ or test_support.is_resource_enabled("subprocess") and not mswindows:
max_handles = 1026 # too much for most UNIX systems
else:
max_handles = 65
More information about the Python-checkins
mailing list