Browse Source

unit_tests.py dep: continue without LED support

The MMGen Project 3 years ago
parent
commit
8e4afc79d4
1 changed files with 6 additions and 1 deletions
  1. 6 1
      test/unit_tests_d/ut_dep.py

+ 6 - 1
test/unit_tests_d/ut_dep.py

@@ -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