From 5f6e665158901f817812d0d52131675121b9080f Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Wed, 21 Jun 2017 14:38:13 +0200 Subject: [PATCH] test/sawg: patch delay_mu --- artiq/gateware/test/dsp/test_sawg_fe.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/artiq/gateware/test/dsp/test_sawg_fe.py b/artiq/gateware/test/dsp/test_sawg_fe.py index 0a55f12d7..b905fea37 100644 --- a/artiq/gateware/test/dsp/test_sawg_fe.py +++ b/artiq/gateware/test/dsp/test_sawg_fe.py @@ -20,10 +20,13 @@ class RTIOManager: def rtio_output_wide(self, *args, **kwargs): self.rtio_output(*args, **kwargs) + def delay_mu(self, t): + delay(t) + def patch(self, mod): assert not hasattr(mod, "_saved") mod._saved = {} - for name in "rtio_output rtio_output_wide".split(): + for name in "rtio_output rtio_output_wide delay_mu".split(): mod._saved[name] = getattr(mod, name, None) setattr(mod, name, getattr(self, name))