diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-01-20 19:03:17 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-01-20 19:03:17 (GMT) |
commit | d414302eec3276cf46c8cc8d27381a6465767288 (patch) | |
tree | 9213d0269108b241f437c576574a2178b164a853 | |
parent | 66262ab0644af6322e064e8bb3bbb8dd9cb3c2c6 (diff) | |
download | cpython-d414302eec3276cf46c8cc8d27381a6465767288.zip cpython-d414302eec3276cf46c8cc8d27381a6465767288.tar.gz cpython-d414302eec3276cf46c8cc8d27381a6465767288.tar.bz2 |
resource.RUSAGE_BOTH might not exist.
-rw-r--r-- | Lib/test/test_resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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): |