mirror of
https://github.com/python/cpython.git
synced 2025-08-09 11:29:45 +00:00
Add support.MS_WINDOWS constant (#110446)
(cherry picked from commit e0c4437793
)
This commit is contained in:
parent
67028f0c15
commit
e188534607
10 changed files with 27 additions and 23 deletions
|
@ -704,6 +704,19 @@ def collect_test_support(info_add):
|
|||
attributes = ('IPV6_ENABLED',)
|
||||
copy_attributes(info_add, support, 'test_support.%s', attributes)
|
||||
|
||||
attributes = (
|
||||
'MS_WINDOWS',
|
||||
'has_fork_support',
|
||||
'has_socket_support',
|
||||
'has_strftime_extensions',
|
||||
'has_subprocess_support',
|
||||
'is_android',
|
||||
'is_emscripten',
|
||||
'is_jython',
|
||||
'is_wasi',
|
||||
)
|
||||
copy_attributes(info_add, support, 'support.%s', attributes)
|
||||
|
||||
call_func(info_add, 'test_support._is_gui_available', support, '_is_gui_available')
|
||||
call_func(info_add, 'test_support.python_is_optimized', support, 'python_is_optimized')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue