Skip to content

Commit

Permalink
tests: Fix test_get_gpu_info
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini authored and mloubout committed Feb 7, 2022
1 parent f49a856 commit 7bb6ff5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_gpu_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ class TestGPUInfo(object):

def test_get_gpu_info(self):
info = get_gpu_info()
known = ['nvidia', 'tesla', 'geforce', 'unspecified']
try:
assert info['architecture'].lower() in ['tesla', 'geforce', 'unspecified']
assert info['architecture'].lower() in known
except KeyError:
# There might be than one GPUs, but for now we don't care
# as we're not really exploiting this info yet...
Expand Down

0 comments on commit 7bb6ff5

Please sign in to comment.