gateware: don't run tests if there is no migen.

This allows us to skip testing gateware on Windows.
This commit is contained in:
whitequark 2018-03-26 03:26:25 +00:00
parent 87c2f119a5
commit 4804cfef9b
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
import unittest
try:
import migen
except ImportError:
def load_tests(*args, **kwargs):
raise unittest.SkipTest("migen unavailable")