diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py index 5e47e0773a9649..9da7d4090bc3e1 100644 --- a/Lib/distutils/tests/test_build_ext.py +++ b/Lib/distutils/tests/test_build_ext.py @@ -492,7 +492,7 @@ def _try_compile_deployment_target(self, operator, target): # format the target value as defined in the Apple # Availability Macros. We can't use the macro names since # at least one value we test with will not exist yet. - if target[1] < 10: + if target < (10, 10): # for 10.1 through 10.9.x -> "10n0" target = '%02d%01d0' % target else: diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py index 5ad306e0ed5795..45ca08819fb36c 100644 --- a/Lib/test/test_platform.py +++ b/Lib/test/test_platform.py @@ -246,7 +246,7 @@ def test_mac_ver(self): self.assertEqual(res[1], ('', '', '')) if sys.byteorder == 'little': - self.assertIn(res[2], ('i386', 'x86_64')) + self.assertIn(res[2], ('i386', 'x86_64', 'arm64')) else: self.assertEqual(res[2], 'PowerPC') diff --git a/Misc/NEWS.d/next/Tests/2020-07-01-17-40-32.bpo-41100.lGf8DF.rst b/Misc/NEWS.d/next/Tests/2020-07-01-17-40-32.bpo-41100.lGf8DF.rst new file mode 100644 index 00000000000000..58fac02c4e15c6 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2020-07-01-17-40-32.bpo-41100.lGf8DF.rst @@ -0,0 +1 @@ +test fixes for Mac OS 11 \ No newline at end of file