(info_add)
| 708 | |
| 709 | |
| 710 | def collect_resource(info_add): |
| 711 | try: |
| 712 | import resource |
| 713 | except ImportError: |
| 714 | return |
| 715 | |
| 716 | limits = [attr for attr in dir(resource) if attr.startswith('RLIMIT_')] |
| 717 | for name in limits: |
| 718 | key = getattr(resource, name) |
| 719 | value = resource.getrlimit(key) |
| 720 | info_add('resource.%s' % name, value) |
| 721 | |
| 722 | call_func(info_add, 'resource.pagesize', resource, 'getpagesize') |
| 723 | |
| 724 | |
| 725 | def collect_test_socket(info_add): |
nothing calls this directly
no test coverage detected