From: Walter Dörwald Date: Sat, 20 Jan 2007 19:03:17 +0000 (+0000) Subject: resource.RUSAGE_BOTH might not exist. X-Git-Tag: v2.6a1~2248 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d414302eec3276cf46c8cc8d27381a6465767288;p=thirdparty%2FPython%2Fcpython.git resource.RUSAGE_BOTH might not exist. --- diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py index a3374d29fb42..5c9b929a9e33 100644 --- a/Lib/test/test_resource.py +++ b/Lib/test/test_resource.py @@ -86,7 +86,7 @@ class ResourceTest(unittest.TestCase): # 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):