Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurphy18 committed Aug 9, 2024
1 parent d5b4003 commit 777de71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/utils/test_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,15 @@ def test_is_aarch64_aarch64():
print(f"DGM test_is_aarch64_aarch64, expected return value '{return_value}'", flush=True)
# Allow for MacOS Arm64 platform returns 'arm64' not 'aarch64', different than Linux
with mock.patch("platform.machine", return_value="aarch64"):
with mock.patch("sys.platform", return_value="not_darwin"):
with mock.patch("sys.platform", new_callable=mock.PropertyMock(return_value="not_darwin")):
assert pytestskipmarkers.utils.platform.is_aarch64() is return_value


def test_is_not_aarch64():
return_value = False
print(f"DGM test_is_not_aarch64, expected return value '{return_value}'", flush=True)
with mock.patch("platform.machine", return_value="not_arm64"):
with mock.patch("sys.platform", return_value="darwin"):
with mock.patch("sys.platform", new_callable=mock.PropertyMock(return_value="darwin")):
assert pytestskipmarkers.utils.platform.is_aarch64() is return_value


Expand Down

0 comments on commit 777de71

Please sign in to comment.