mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
bpo-41100: in test_platform, ignore 10.16 (GH-23485) (GH-23486)
(cherry picked from commit c0c23ea72b
)
Co-authored-by: Ned Deily <nad@python.org>
This commit is contained in:
parent
3266991e72
commit
96d906b144
1 changed files with 4 additions and 1 deletions
|
@ -237,7 +237,10 @@ class PlatformTest(unittest.TestCase):
|
|||
# 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue