File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,6 @@ class test_conditional_numerical_reproducibility_control():
196
196
def test_cbwr (self ):
197
197
branches = [
198
198
'off' ,
199
- 'branch_off' ,
200
199
'auto' ,
201
200
'compatible' ,
202
201
'sse2' ,
@@ -220,7 +219,9 @@ def test_cbwr(self):
220
219
def check_cbwr (self , branch ):
221
220
status = mkl .cbwr_set (branch = branch )
222
221
if status == 'success' :
223
- assert_equals (mkl .cbwr_get (cnr_const = 'branch' ), branch )
222
+ expected_value = 'branch_off' if branch == 'off' else branch
223
+ actual_value = mkl .cbwr_get (cnr_const = 'all' )
224
+ assert_equals (actual_value , expected_value , msg = "Round-trip failure for CNR branch '{}'" .format (branch ))
224
225
elif status != 'err_unsupported_branch' :
225
226
raise AssertionError (status )
226
227
You can’t perform that action at this time.
0 commit comments