From 432fa006b26d0c26380b6dcb98ee8dc350fe04b1 Mon Sep 17 00:00:00 2001 From: Lekcyjna <309016@uwr.edu.pl> Date: Sun, 19 Nov 2023 18:39:14 +0100 Subject: [PATCH] Lint --- test/common/infrastructure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common/infrastructure.py b/test/common/infrastructure.py index 966c61d3e..90d55b2b5 100644 --- a/test/common/infrastructure.py +++ b/test/common/infrastructure.py @@ -196,8 +196,8 @@ def run_until_with_callbacks(self, deadline, *, run_passive=False): """ # Convert deadline in seconds into internal amaranth 1 ps units deadline = deadline * 1e12 - assert cast(Any,self)._engine.now <= deadline - while (self.advance() or run_passive) and cast(Any,self)._engine.now < deadline: + assert cast(Any, self)._engine.now <= deadline + while (self.advance() or run_passive) and cast(Any, self)._engine.now < deadline: for callback in self.one_shot_callbacks: callback() self.one_shot_callbacks.clear()