diff options
author | Peter Astrand <astrand@lysator.liu.se> | 2006-06-22 20:06:46 (GMT) |
---|---|---|
committer | Peter Astrand <astrand@lysator.liu.se> | 2006-06-22 20:06:46 (GMT) |
commit | d6b2430b7a99110119743b8529b66c39d1fed722 (patch) | |
tree | 8f81e129249ed79bbf478db8e231793eac060257 /Lib | |
parent | 978ec9a89f9f5958aeb5fa867f87c03b117e6b6a (diff) | |
download | cpython-d6b2430b7a99110119743b8529b66c39d1fed722.zip cpython-d6b2430b7a99110119743b8529b66c39d1fed722.tar.gz cpython-d6b2430b7a99110119743b8529b66c39d1fed722.tar.bz2 |
Make it possible to run test_subprocess.py on Python 2.2, which lacks test_support.is_resource_enabled.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_subprocess.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index edf5bd0..9877f51 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -384,7 +384,8 @@ class ProcessTestCase(unittest.TestCase): 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 |