From 5130faac5110c549678a3eb67c3e5b7cb71dabe9 Mon Sep 17 00:00:00 2001 From: David Murphy Date: Thu, 8 Aug 2024 11:08:35 -0600 Subject: [PATCH] Updated plaform support for MacOS using arm64, and added x86_64 check for completeness --- src/pytestskipmarkers/utils/platform.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/pytestskipmarkers/utils/platform.py b/src/pytestskipmarkers/utils/platform.py index 4ff84ba..f8addd4 100644 --- a/src/pytestskipmarkers/utils/platform.py +++ b/src/pytestskipmarkers/utils/platform.py @@ -112,6 +112,20 @@ def is_aarch64() -> bool: return platform.machine().startswith("aarch64") +def is_arm64() -> bool: + """ + Simple function to return if host is Arm64 or not. + """ + return platform.machine().startswith("arm64") + + +def is_x86_64() -> bool: + """ + Simple function to return if host is x86_64 or not. + """ + return platform.machine().startswith("x86_64") + + def is_photonos() -> bool: """ Simple function to return if host is Photon OS or not.