Kaydet (Commit) d414302e authored tarafından Walter Dörwald's avatar Walter Dörwald

resource.RUSAGE_BOTH might not exist.

üst 66262ab0
...@@ -86,7 +86,7 @@ class ResourceTest(unittest.TestCase): ...@@ -86,7 +86,7 @@ class ResourceTest(unittest.TestCase):
# May not be available on all systems. # May not be available on all systems.
try: try:
usageboth = resource.getrusage(resource.RUSAGE_BOTH) usageboth = resource.getrusage(resource.RUSAGE_BOTH)
except ValueError: except (ValueError, AttributeError):
pass pass
def test_main(verbose=None): def test_main(verbose=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment