(info_add)
| 725 | |
| 726 | |
| 727 | def collect_resource(info_add): |
| 728 | try: |
| 729 | import resource |
| 730 | except ImportError: |
| 731 | return |
| 732 | |
| 733 | limits = [attr for attr in dir(resource) if attr.startswith('RLIMIT_')] |
| 734 | for name in limits: |
| 735 | key = getattr(resource, name) |
| 736 | value = resource.getrlimit(key) |
| 737 | info_add('resource.%s' % name, value) |
| 738 | |
| 739 | call_func(info_add, 'resource.pagesize', resource, 'getpagesize') |
| 740 | |
| 741 | |
| 742 | def collect_test_socket(info_add): |
nothing calls this directly
no test coverage detected
searching dependent graphs…