[Python-checkins] r53506 - python/trunk/Lib/test/test_resource.py
walter.doerwald
python-checkins at python.org
Sat Jan 20 20:03:18 CET 2007
Author: walter.doerwald
Date: Sat Jan 20 20:03:17 2007
New Revision: 53506
Modified:
python/trunk/Lib/test/test_resource.py
Log:
resource.RUSAGE_BOTH might not exist.
Modified: python/trunk/Lib/test/test_resource.py
==============================================================================
--- python/trunk/Lib/test/test_resource.py (original)
+++ python/trunk/Lib/test/test_resource.py Sat Jan 20 20:03:17 2007
@@ -86,7 +86,7 @@
# May not be available on all systems.
try:
usageboth = resource.getrusage(resource.RUSAGE_BOTH)
- except ValueError:
+ except (ValueError, AttributeError):
pass
def test_main(verbose=None):
More information about the Python-checkins
mailing list