Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96d906b

Browse files
bpo-41100: in test_platform, ignore 10.16 (GH-23485) (GH-23486)
(cherry picked from commitc0c23ea)Co-authored-by: Ned Deily <nad@python.org>
1 parent3266991 commit96d906b

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
@@ -237,7 +237,10 @@ def test_mac_ver(self):
237237
# On Snow Leopard, sw_vers reports 10.6.0 as 10.6
238238
iflen_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+
ifresult_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)

[8]ページ先頭

©2009-2025 Movatter.jp