mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +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.
|
# 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):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue