From bec210975d22fed2bc8d0416cbfdcfa9ccc8f63e Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Wed, 15 Mar 2023 14:25:12 +0200 Subject: [PATCH] Copy connections before check --- minode/tests/test_app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minode/tests/test_app.py b/minode/tests/test_app.py index 4eccd60..7ef63c9 100644 --- a/minode/tests/test_app.py +++ b/minode/tests/test_app.py @@ -34,7 +34,8 @@ class TestAppProto(unittest.TestCase): def _connections(self): return [ - c for c in shared.connections if c.status == 'fully_established'] + c for c in shared.connections.copy() + if c.status == 'fully_established'] @classmethod def setUpClass(cls):