From de7009862cc9fd459b85e4eb34668611736ca6ed Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Tue, 24 Nov 2020 00:39:59 -0500 Subject: [PATCH] bpo-41100: in test_platform, ignore 10.16 --- Lib/test/test_platform.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py index 9b6d93cb5fcda4..1590cd509b95c5 100644 --- a/Lib/test/test_platform.py +++ b/Lib/test/test_platform.py @@ -238,7 +238,10 @@ def test_mac_ver(self): # 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)