summaryrefslogtreecommitdiff
path: root/Lib/test/test_resource.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_resource.py')
-rw-r--r--Lib/test/test_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py
index a3374d29fb..5c9b929a9e 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):