resource.RUSAGE_BOTH might not exist.
diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py
index a3374d2..5c9b929 100644
--- a/Lib/test/test_resource.py
+++ b/Lib/test/test_resource.py
@@ -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):