diff --git a/tests/run_tests.py b/tests/run_tests.py index 2ffc659..5dd8765 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -6,7 +6,10 @@ import subprocess if __name__ == "__main__": - root = abspath(dirname(__file__)) - os.chdir(root) + # CTRE's library tends to crash on OSX at program exit, so + # don't bother running the tests in CI + if sys.platform != "darwin": + root = abspath(dirname(__file__)) + os.chdir(root) - subprocess.check_call([sys.executable, "-m", "pytest"]) + subprocess.check_call([sys.executable, "-m", "pytest"]) diff --git a/tests/test_ctre.py b/tests/test_ctre.py index eb96efd..8f058f5 100644 --- a/tests/test_ctre.py +++ b/tests/test_ctre.py @@ -1,9 +1,6 @@ import phoenix5 -import sys -import pytest -@pytest.mark.skipif(sys.platform == "darwin", reason="OSX CI failure") def test_wpi_talonsrx(): m = phoenix5.WPI_TalonSRX(0) m.setNeutralMode(phoenix5.NeutralMode.Brake) @@ -12,7 +9,6 @@ def test_wpi_talonsrx(): del m -@pytest.mark.skipif(sys.platform == "darwin", reason="OSX CI failure") def test_wpi_talonfx(): m = phoenix5.WPI_TalonFX(1) m.setNeutralMode(phoenix5.NeutralMode.Brake) @@ -21,7 +17,6 @@ def test_wpi_talonfx(): del m -@pytest.mark.skipif(sys.platform == "darwin", reason="OSX CI failure") def test_wpi_victorspx(): m = phoenix5.WPI_VictorSPX(2) m.setNeutralMode(phoenix5.NeutralMode.Brake) @@ -30,7 +25,6 @@ def test_wpi_victorspx(): del m -@pytest.mark.skipif(sys.platform == "darwin", reason="OSX CI failure") def test_follow(): m1 = phoenix5.WPI_TalonFX(3) m2 = phoenix5.WPI_TalonFX(4)