Skip to content

Commit ba0d075

Browse files
committed
test: clean up assertion
1 parent 6993584 commit ba0d075

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cuda_pathfinder/tests/test_find_nvidia_binaries.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ def test_find_binary_utilities(info_summary_append, utility_name):
2525
bin_path = find_nvidia_binary_utility(utility_name)
2626
info_summary_append(f"{bin_path=!r}")
2727

28-
if bin_path is not None:
29-
assert os.path.isfile(bin_path)
28+
assert bin_path is None or os.path.isfile(bin_path)
3029

3130

3231
def test_supported_binaries_consistency():

0 commit comments

Comments
 (0)