From d414302eec3276cf46c8cc8d27381a6465767288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Sat, 20 Jan 2007 19:03:17 +0000 Subject: [PATCH] resource.RUSAGE_BOTH might not exist. --- Lib/test/test_resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py index a3374d29fb4..5c9b929a9e3 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):