Skip to content

Commit

Permalink
test_protocol: skip unless we have artiq
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Jul 19, 2017
1 parent 3ad96ae commit fdb27e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pdq/test/test_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@

from migen import run_simulation

from artiq.wavesynth.compute_samples import Synthesizer
try:
from artiq.wavesynth.compute_samples import Synthesizer
except ImportError:
Synthesizer = None

from ..gateware.pdq import PdqSim
from ..host.usb import PDQ


@unittest.skipUnless(Synthesizer, "no artiq found")
class TestPdq(unittest.TestCase):
def setUp(self):
self.dev = PDQ(dev=io.BytesIO())
Expand Down

0 comments on commit fdb27e9

Please sign in to comment.