commit | d414302eec3276cf46c8cc8d27381a6465767288 | [log] [tgz] |
---|---|---|
author | Walter Dörwald <walter@livinglogic.de> | Sat Jan 20 19:03:17 2007 +0000 |
committer | Walter Dörwald <walter@livinglogic.de> | Sat Jan 20 19:03:17 2007 +0000 |
tree | 9213d0269108b241f437c576574a2178b164a853 | |
parent | 66262ab0644af6322e064e8bb3bbb8dd9cb3c2c6 [diff] [blame] |
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):