mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH-24341) (GH-24410)
* bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
(cherry picked from commit 49926cf2bc
)
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
This commit is contained in:
parent
3c8d693443
commit
d6675fee1a
6 changed files with 21 additions and 6 deletions
|
@ -1045,7 +1045,7 @@ class PosixTester(unittest.TestCase):
|
|||
if sys.platform == 'darwin':
|
||||
import sysconfig
|
||||
dt = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET') or '10.0'
|
||||
if tuple(int(n) for n in str(dt).split('.')[0:2]) < (10, 6):
|
||||
if tuple(int(n) for n in dt.split('.')[0:2]) < (10, 6):
|
||||
raise unittest.SkipTest("getgroups(2) is broken prior to 10.6")
|
||||
|
||||
# 'id -G' and 'os.getgroups()' should return the same
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue