[Python-checkins] bpo-41100: in test_platform, ignore 10.16 (GH-23485) (GH-23486)

ned-deily webhook-mailer at python.org
Tue Nov 24 01:34:31 EST 2020


https://github.com/python/cpython/commit/96d906b144e6e6aa96c5ffebecbcc5d38034bbda
commit: 96d906b144e6e6aa96c5ffebecbcc5d38034bbda
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ned-deily <nad at python.org>
date: 2020年11月24日T01:34:16-05:00
summary:
bpo-41100: in test_platform, ignore 10.16 (GH-23485) (GH-23486)
(cherry picked from commit c0c23ea72b76b06b7db0d09415fa90bab8ded63a)
Co-authored-by: Ned Deily <nad at python.org>
files:
M Lib/test/test_platform.py
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py
index bd953b5d677ef..a3b06feb6552e 100644
--- a/Lib/test/test_platform.py
+++ b/Lib/test/test_platform.py
@@ -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)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /