Skip to content

Commit

Permalink
Update transactron/testing/testbenchio.py
Browse files Browse the repository at this point in the history
Co-authored-by: Arusekk <[email protected]>
  • Loading branch information
tilk and Arusekk authored Nov 18, 2024
1 parent c14ff5c commit 4252935
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions transactron/testing/testbenchio.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ def call(self, tbio: "TestbenchIO", data: dict[str, Any] = {}, /, **kwdata):
return CallTrigger(self.sim, (*self.calls_and_values, (tbio, data or kwdata)))

async def until_done(self) -> Any:
call = self.__aiter__()
while True:
results = await call.__anext__()
async for results in self:
if any(res is not None for res in results):
return results

Expand Down

0 comments on commit 4252935

Please sign in to comment.