Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 936533c commit c0c23eaCopy full SHA for c0c23ea
1 file changed
Lib/test/test_platform.py
@@ -238,7 +238,10 @@ def test_mac_ver(self):
238
# On Snow Leopard, sw_vers reports 10.6.0 as 10.6
239
if len_diff > 0:
240
expect_list.extend(['0'] * len_diff)
241
- self.assertEqual(result_list, expect_list)
+ # 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)
245
246
# res[1] claims to contain
247
# (version, dev_stage, non_release_version)
0 commit comments