resource.RUSAGE_BOTH might not exist.

This commit is contained in:
Walter Dörwald 2007-01-20 19:03:17 +00:00
parent 66262ab064
commit d414302eec
1 changed files with 1 additions and 1 deletions

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