Skip to content

Commit

Permalink
avoid mutating user input
Browse files Browse the repository at this point in the history
  • Loading branch information
Kafonek committed Sep 30, 2022
1 parent e5b28e7 commit 62b99db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_jupyter_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ async def run_until_seen(self, msg_types: List[str], timeout: float):
to see 'status', 'execute_reply', and 'status' again.
"""
deadline = time.time() + timeout
msg_types = msg_types[:]
while msg_types:
max_wait = deadline - time.time()
await asyncio.wait_for(self.next_event.wait(), timeout=max_wait)
Expand Down

0 comments on commit 62b99db

Please sign in to comment.