Skip to content

Commit

Permalink
bpo-41100: in test_platform, ignore 10.16 (pythonGH-23485)
Browse files Browse the repository at this point in the history
(cherry picked from commit c0c23ea)

Co-authored-by: Ned Deily <nad@python.org>
  • Loading branch information
ned-deily authored and miss-islington committed Nov 24, 2020
1 parent 3266991 commit 3e57df1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/test/test_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,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)
Expand Down

0 comments on commit 3e57df1

Please sign in to comment.