Skip to content

Commit

Permalink
Updated plaform support for MacOS using arm64, and added x86_64 check…
Browse files Browse the repository at this point in the history
… for completeness
  • Loading branch information
dmurphy18 committed Aug 8, 2024
1 parent 5fc297c commit 5130faa
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/pytestskipmarkers/utils/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5130faa

Please sign in to comment.