Skip to content

Commit 96d906b

Browse files
bpo-41100: in test_platform, ignore 10.16 (pythonGH-23485) (pythonGH-23486)
(cherry picked from commit c0c23ea) Co-authored-by: Ned Deily <nad@python.org>
1 parent 3266991 commit 96d906b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_platform.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,10 @@ def test_mac_ver(self):
237237
# On Snow Leopard, sw_vers reports 10.6.0 as 10.6
238238
if len_diff > 0:
239239
expect_list.extend(['0'] * len_diff)
240-
self.assertEqual(result_list, expect_list)
240+
# For compatibility with older binaries, macOS 11.x may report
241+
# itself as '10.16' rather than '11.x.y'.
242+
if result_list != ['10', '16']:
243+
self.assertEqual(result_list, expect_list)
241244

242245
# res[1] claims to contain
243246
# (version, dev_stage, non_release_version)

0 commit comments

Comments
 (0)