diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-11-17 16:19:35 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-11-17 16:19:35 (GMT) |
commit | b6d4ee536174f2d467c195904c140025109242e7 (patch) | |
tree | 1d75538a1c10061fd61353e0da779e5573fc141e /Lib | |
parent | dc817b229c972b2a881d08834a0612232dac7415 (diff) | |
download | cpython-b6d4ee536174f2d467c195904c140025109242e7.zip cpython-b6d4ee536174f2d467c195904c140025109242e7.tar.gz cpython-b6d4ee536174f2d467c195904c140025109242e7.tar.bz2 |
Issue #10440: Support RUSAGE_THREAD as a constant in the resource module.
Patch by Robert Collins.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_resource.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py index 4546349..3c9b620 100644 --- a/Lib/test/test_resource.py +++ b/Lib/test/test_resource.py @@ -102,6 +102,10 @@ class ResourceTest(unittest.TestCase): usageboth = resource.getrusage(resource.RUSAGE_BOTH) except (ValueError, AttributeError): pass + try: + usage_thread = resource.getrusage(resource.RUSAGE_THREAD) + except (ValueError, AttributeError): + pass def test_main(verbose=None): support.run_unittest(ResourceTest) |