diff options
author | Ned Deily <nad@python.org> | 2020-11-24 06:20:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 06:20:35 (GMT) |
commit | c0c23ea72b76b06b7db0d09415fa90bab8ded63a (patch) | |
tree | 5ac0bdac0a9239addbe3065198cbf5854949d198 | |
parent | 936533ca0415c40dc64ccb5f8857720f32b3fcb4 (diff) | |
download | cpython-c0c23ea72b76b06b7db0d09415fa90bab8ded63a.zip cpython-c0c23ea72b76b06b7db0d09415fa90bab8ded63a.tar.gz cpython-c0c23ea72b76b06b7db0d09415fa90bab8ded63a.tar.bz2 |
bpo-41100: in test_platform, ignore 10.16 (GH-23485)
-rw-r--r-- | Lib/test/test_platform.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py index 9b6d93c..1590cd5 100644 --- a/Lib/test/test_platform.py +++ b/Lib/test/test_platform.py @@ -238,7 +238,10 @@ class PlatformTest(unittest.TestCase): # On Snow Leopard, sw_vers reports 10.6.0 as 10.6 if len_diff > 0: expect_list.extend(['0'] * len_diff) - self.assertEqual(result_list, expect_list) + # For compatibility with older binaries, macOS 11.x may report + # itself as '10.16' rather than '11.x.y'. + if result_list != ['10', '16']: + self.assertEqual(result_list, expect_list) # res[1] claims to contain # (version, dev_stage, non_release_version) |