From 0987f18502fa32b1c6eb9e72121685a1bc1c0f9e Mon Sep 17 00:00:00 2001 From: Padraic Fanning Date: Mon, 19 Apr 2021 22:47:26 -0400 Subject: [PATCH 1/3] Add extra check in test_py_compile The test in question passes on Big Sur with Apple Silicon. --- Lib/test/test_py_compile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py index aca293d1b..8092141cb 100644 --- a/Lib/test/test_py_compile.py +++ b/Lib/test/test_py_compile.py @@ -114,7 +114,8 @@ class PyCompileTestsBase: self.assertFalse(os.path.exists(self.cache_path)) # TODO: RUSTPYTHON - if sys.platform == "darwin": + import platform + if sys.platform == "darwin" and platform.machine() != "arm64": test_relative_path = unittest.expectedFailure(test_relative_path) @unittest.skipIf(hasattr(os, 'geteuid') and os.geteuid() == 0, From d3d940cf1a4a170ad36b64ec7bbe7fcf3bcb861a Mon Sep 17 00:00:00 2001 From: Padraic Fanning Date: Wed, 21 Apr 2021 20:57:29 -0400 Subject: [PATCH 2/3] Change check to cover all versions of Big Sur --- Lib/test/test_py_compile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py index 8092141cb..38f3adf9c 100644 --- a/Lib/test/test_py_compile.py +++ b/Lib/test/test_py_compile.py @@ -115,7 +115,7 @@ class PyCompileTestsBase: # TODO: RUSTPYTHON import platform - if sys.platform == "darwin" and platform.machine() != "arm64": + if sys.platform == "darwin" and platform.release() != "20.3.0": test_relative_path = unittest.expectedFailure(test_relative_path) @unittest.skipIf(hasattr(os, 'geteuid') and os.geteuid() == 0, From 84f13e1cb9fdb33bb3d7d58f4fce59b092ffbf3e Mon Sep 17 00:00:00 2001 From: Padraic Fanning Date: Wed, 21 Apr 2021 21:15:10 -0400 Subject: [PATCH 3/3] Change check to cover all releases of Big Sur --- Lib/test/test_py_compile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py index 38f3adf9c..4b726f51f 100644 --- a/Lib/test/test_py_compile.py +++ b/Lib/test/test_py_compile.py @@ -115,7 +115,7 @@ class PyCompileTestsBase: # TODO: RUSTPYTHON import platform - if sys.platform == "darwin" and platform.release() != "20.3.0": + if sys.platform == "darwin" and int(platform.release().split(".")[0]) < 20: test_relative_path = unittest.expectedFailure(test_relative_path) @unittest.skipIf(hasattr(os, 'geteuid') and os.geteuid() == 0,