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):