@@ -100,8 +100,8 @@ def test_find_best_n_discords(self):
100100 a = find_best_n_discords_result [2 ].to_numpy ()
101101
102102 self .assertEqual (a [0 ], 0 )
103- # The test failed in the CPU used in the Travis CI OSX build machine
104- if os .environ .get ("TRAVIS_OS_NAME " ) == "osx " :
103+ # The test failed in the CPU used in the Travis CI build machine
104+ if os .environ .get ("TRAVIS " ) == "true " :
105105 self .assertEqual (a [1 ], 2 )
106106 else :
107107 self .assertEqual (a [1 ], 10 )
@@ -117,8 +117,8 @@ def test_find_best_n_discords_multiple_profiles(self):
117117 stomp_result [1 ], 3 , 2 )
118118 a = find_best_n_discords_result [2 ].to_numpy ()
119119
120- # The test failed in the CPU used in the Travis CI OSX build machine
121- if os .environ .get ("TRAVIS_OS_NAME " ) == "osx " :
120+ # The test failed in the CPU used in the Travis CI build machine
121+ if os .environ .get ("TRAVIS " ) == "true " :
122122 np .testing .assert_array_almost_equal (a , np .array ([[[0 , 2 ], [0 , 2 ]], [[0 , 2 ], [0 , 2 ]]]),
123123 decimal = self .DECIMAL )
124124 else :
@@ -143,8 +143,8 @@ def test_find_best_n_discords_consecutive(self):
143143 a = find_best_n_discords_result [2 ].to_numpy ()
144144
145145 self .assertEqual (a [0 ], 12 )
146- # The test failed in the CPU used in the Travis CI OSX build machine
147- if os .environ .get ("TRAVIS_OS_NAME " ) == "osx " :
146+ # The test failed in the CPU used in the Travis CI build machine
147+ if os .environ .get ("TRAVIS " ) == "true " :
148148 self .assertEqual (a [1 ], 11 )
149149 else :
150150 self .assertNotEqual (a [1 ], 11 )
0 commit comments