mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
resource.RUSAGE_BOTH might not exist.
This commit is contained in:
parent
66262ab064
commit
d414302eec
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue