We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3266991 commit 96d906bCopy full SHA for 96d906b
Lib/test/test_platform.py
@@ -237,7 +237,10 @@ def test_mac_ver(self):
237
# On Snow Leopard, sw_vers reports 10.6.0 as 10.6
238
if len_diff > 0:
239
expect_list.extend(['0'] * len_diff)
240
- self.assertEqual(result_list, expect_list)
+ # 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)
244
245
# res[1] claims to contain
246
# (version, dev_stage, non_release_version)
0 commit comments