diff options
author | Ned Deily <nad@acm.org> | 2014-06-25 20:36:14 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2014-06-25 20:36:14 (GMT) |
commit | 04cdfa1147d5aadbee190b3aa2c4ccfd2d4a122d (patch) | |
tree | 3f7582d80bbbd7f46f39e78954e2b8e1c4b63359 /Lib/test/test_posix.py | |
parent | 975735f729df6b7767556d2d389b560dbc7500ac (diff) | |
download | cpython-04cdfa1147d5aadbee190b3aa2c4ccfd2d4a122d.zip cpython-04cdfa1147d5aadbee190b3aa2c4ccfd2d4a122d.tar.gz cpython-04cdfa1147d5aadbee190b3aa2c4ccfd2d4a122d.tar.bz2 |
Issue #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite.
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r-- | Lib/test/test_posix.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 9a5ee91..fdf5948 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -768,7 +768,7 @@ class PosixTester(unittest.TestCase): if sys.platform == 'darwin': import sysconfig dt = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET') or '10.0' - if float(dt) < 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 |