Skip to content

Commit c0c23ea

Browse files
authored
bpo-41100: in test_platform, ignore 10.16 (pythonGH-23485)
1 parent 936533c commit c0c23ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_platform.py

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

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

0 commit comments

Comments
 (0)