Skip to content

Commit

Permalink
fix: Skip tests related to python installation on non-standard platforms
Browse files Browse the repository at this point in the history
Close #3053

Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Sep 10, 2024
1 parent 66a5a5c commit de44bb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/3053.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Skip tests related to python installation on non-standard platforms.
3 changes: 3 additions & 0 deletions tests/cli/test_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

@pytest.fixture
def mock_install(mocker):
if (arch := platform.machine().lower()) not in ("arm64", "aarch64", "amd64", "x86_64"):
pytest.skip(f"Skipped on non-standard platform: {arch}")

def install_file(
filename,
destination,
Expand Down

0 comments on commit de44bb3

Please sign in to comment.