MCPcopy Index your code
hub / github.com/RustPython/RustPython / collect_support

Function collect_support

Lib/test/pythoninfo.py:738–765  ·  view source on GitHub ↗
(info_add)

Source from the content-addressed store, hash-verified

736
737
738def collect_support(info_add):
739 try:
740 from test import support
741 except ImportError:
742 return
743
744 attributes = (
745 'MS_WINDOWS',
746 'has_fork_support',
747 'has_socket_support',
748 'has_strftime_extensions',
749 'has_subprocess_support',
750 'is_android',
751 'is_emscripten',
752 'is_jython',
753 'is_wasi',
754 )
755 copy_attributes(info_add, support, 'support.%s', attributes)
756
757 call_func(info_add, 'support._is_gui_available', support, '_is_gui_available')
758 call_func(info_add, 'support.python_is_optimized', support, 'python_is_optimized')
759
760 info_add('support.check_sanitizer(address=True)',
761 support.check_sanitizer(address=True))
762 info_add('support.check_sanitizer(memory=True)',
763 support.check_sanitizer(memory=True))
764 info_add('support.check_sanitizer(ub=True)',
765 support.check_sanitizer(ub=True))
766
767
768def collect_support_os_helper(info_add):

Callers

nothing calls this directly

Calls 2

copy_attributesFunction · 0.85
call_funcFunction · 0.85

Tested by

no test coverage detected