]> granicus.if.org Git - python/commitdiff
resource.RUSAGE_BOTH might not exist.
authorWalter Dörwald <walter@livinglogic.de>
Sat, 20 Jan 2007 19:03:17 +0000 (19:03 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Sat, 20 Jan 2007 19:03:17 +0000 (19:03 +0000)
Lib/test/test_resource.py

index a3374d29fb42de9362a12c6857c092960309911f..5c9b929a9e338028a86187add128b08c4326cfb1 100644 (file)
@@ -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):