Skip to content

Commit

Permalink
Only test ScaleneAppleGPU on Darwin platforms (revised redux).
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Dec 31, 2024
1 parent cfbcf87 commit 2415d1b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_coverup_18.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import platform

if platform.system() != "Darwin":
pytest.exit("This test only runs on Darwin platforms.", 0)
pytest.skip("This test only runs on Darwin platforms.")

# Assuming the class ScaleneAppleGPU is defined elsewhere in the module
from scalene.scalene_apple_gpu import ScaleneAppleGPU
Expand Down
2 changes: 1 addition & 1 deletion tests/test_coverup_27.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from unittest.mock import patch

if platform.system() != "Darwin":
pytest.exit("This test only runs on Darwin platforms.", 0)
pytest.skip("This test only runs on Darwin platforms.")

# Assuming the ScaleneAppleGPU class is in a module named scalene_apple_gpu
from scalene.scalene_apple_gpu import ScaleneAppleGPU
Expand Down
6 changes: 3 additions & 3 deletions tests/test_coverup_57.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from unittest.mock import patch, MagicMock
from typing import Tuple

if platform.system() != "Darwin":
pytest.exit("This test only runs on Darwin platforms.", 0)
if platform.system() != "Darwin":
pytest.skip("This test only runs on Darwin platforms.")

from scalene.scalene_apple_gpu import ScaleneAppleGPU

class MockedScaleneAppleGPU(ScaleneAppleGPU):
Expand Down

0 comments on commit 2415d1b

Please sign in to comment.