unit_tests.py dep: continue without LED support

This commit is contained in:
The MMGen Project 2022-01-04 19:51:16 +00:00
commit 8e4afc79d4
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2

View file

@ -15,7 +15,12 @@ class unit_tests:
def led(self,name,ut):
from mmgen.led import LEDControl
LEDControl(enabled=True)
try:
LEDControl(enabled=True)
except NoLEDSupport:
ymsg('Warning: no LED support on this platform')
else:
gmsg('LED support found!')
return True
def pysha3(self,name,ut): # ETH,XMR