mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Synced docs and docstring for sysconfig.get_platform (#135530)
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com> Co-authored-by: Ned Deily <nad@python.org>
This commit is contained in:
parent
b9dbf6acb3
commit
01cc53295c
3 changed files with 26 additions and 18 deletions
|
|
@ -352,6 +352,13 @@ def test_get_platform(self):
|
|||
|
||||
self.assertEqual(get_platform(), 'macosx-10.4-%s' % arch)
|
||||
|
||||
for macver in range(11, 16):
|
||||
_osx_support._remove_original_values(get_config_vars())
|
||||
get_config_vars()['CFLAGS'] = ('-fno-strict-overflow -Wsign-compare -Wunreachable-code'
|
||||
'-arch arm64 -fno-common -dynamic -DNDEBUG -g -O3 -Wall')
|
||||
get_config_vars()['MACOSX_DEPLOYMENT_TARGET'] = f"{macver}.0"
|
||||
self.assertEqual(get_platform(), 'macosx-%d.0-arm64' % macver)
|
||||
|
||||
# linux debian sarge
|
||||
os.name = 'posix'
|
||||
sys.version = ('2.3.5 (#1, Jul 4 2007, 17:28:59) '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue