From 618e2788d9217960677bd436a0b27253f68d88d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Bourdeauducq?= Date: Mon, 2 Sep 2024 12:48:09 +0800 Subject: [PATCH] test: prevent NAC3 analysis failures of imported but unused methods --- artiq/test/coredevice/test_cache.py | 2 +- artiq/test/coredevice/test_edge_counter.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/artiq/test/coredevice/test_cache.py b/artiq/test/coredevice/test_cache.py index 10d586e02..3574711d0 100644 --- a/artiq/test/coredevice/test_cache.py +++ b/artiq/test/coredevice/test_cache.py @@ -9,7 +9,7 @@ from artiq.coredevice.exceptions import CacheError from artiq.test.hardware_testbench import ExperimentCase -@nac3 +# NAC3TODO @nac3 class _Cache(EnvExperiment): core: KernelInvariant[Core] core_cache: KernelInvariant[CoreCache] diff --git a/artiq/test/coredevice/test_edge_counter.py b/artiq/test/coredevice/test_edge_counter.py index 867976d1e..8152a3922 100644 --- a/artiq/test/coredevice/test_edge_counter.py +++ b/artiq/test/coredevice/test_edge_counter.py @@ -19,7 +19,7 @@ class EdgeCounterExp(EnvExperiment): self.setattr_device("loop_out") # NAC3TODO https://git.m-labs.hk/M-Labs/nac3/issues/461 - @kernel + # NAC3TODO @kernel def count_pulse_edges(self, gate_fn) -> tuple[int32, int32]: self.core.break_realtime() with parallel: @@ -27,9 +27,9 @@ class EdgeCounterExp(EnvExperiment): self.core.delay(5. * us) self.loop_out.pulse(10. * us) with sequential: - #gate_fn(10. * us) + gate_fn(10. * us) self.core.delay(1. * us) - #gate_fn(10 * us) + gate_fn(10 * us) return (self.loop_in_counter.fetch_count(), self.loop_in_counter.fetch_count())