Issue #10440: Support RUSAGE_THREAD as a constant in the resource module.
Patch by Robert Collins.
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 @@
             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)