File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 66import subprocess
77
88if __name__ == "__main__" :
9- root = abspath (dirname (__file__ ))
10- os .chdir (root )
9+ # CTRE's library tends to crash on OSX at program exit, so
10+ # don't bother running the tests in CI
11+ if sys .platform != "darwin" :
12+ root = abspath (dirname (__file__ ))
13+ os .chdir (root )
1114
12- subprocess .check_call ([sys .executable , "-m" , "pytest" ])
15+ subprocess .check_call ([sys .executable , "-m" , "pytest" ])
Original file line number Diff line number Diff line change 11import phoenix5
2- import sys
3- import pytest
42
53
6- @pytest .mark .skipif (sys .platform == "darwin" , reason = "OSX CI failure" )
74def test_wpi_talonsrx ():
85 m = phoenix5 .WPI_TalonSRX (0 )
96 m .setNeutralMode (phoenix5 .NeutralMode .Brake )
@@ -12,7 +9,6 @@ def test_wpi_talonsrx():
129 del m
1310
1411
15- @pytest .mark .skipif (sys .platform == "darwin" , reason = "OSX CI failure" )
1612def test_wpi_talonfx ():
1713 m = phoenix5 .WPI_TalonFX (1 )
1814 m .setNeutralMode (phoenix5 .NeutralMode .Brake )
@@ -21,7 +17,6 @@ def test_wpi_talonfx():
2117 del m
2218
2319
24- @pytest .mark .skipif (sys .platform == "darwin" , reason = "OSX CI failure" )
2520def test_wpi_victorspx ():
2621 m = phoenix5 .WPI_VictorSPX (2 )
2722 m .setNeutralMode (phoenix5 .NeutralMode .Brake )
@@ -30,7 +25,6 @@ def test_wpi_victorspx():
3025 del m
3126
3227
33- @pytest .mark .skipif (sys .platform == "darwin" , reason = "OSX CI failure" )
3428def test_follow ():
3529 m1 = phoenix5 .WPI_TalonFX (3 )
3630 m2 = phoenix5 .WPI_TalonFX (4 )
You can’t perform that action at this time.
0 commit comments