Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekcyjna committed Nov 19, 2023
1 parent 504623a commit 432fa00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/common/infrastructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 432fa00

Please sign in to comment.