From 2828b97f5aad70da1075f4d9c8c362dd73fc28ab Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 30 Jun 2021 13:52:31 -0400 Subject: [PATCH] Avoid mutate during interate error --- tests/test_advanced_streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_advanced_streaming.py b/tests/test_advanced_streaming.py index a4d36a9..4429d25 100644 --- a/tests/test_advanced_streaming.py +++ b/tests/test_advanced_streaming.py @@ -30,7 +30,7 @@ async def publisher( sub = 'even' if is_even(val) else 'odd' - for sub_stream in _registry[sub]: + for sub_stream in _registry[sub].copy(): await sub_stream.send(val) # throttle send rate to ~1kHz