From 3d1009f7e28dbcef76cf70ac7ff152d3987eb7a0 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sun, 24 Dec 2023 07:12:15 +0000 Subject: [PATCH] tests: fix TestLNTransport.test_loop for python 3.12 Semantics for server.wait_closed changed in 3.12, and it was always a no-op in our usage in prior versions. see https://github.com/python/cpython/issues/104344 --- electrum/tests/test_lntransport.py | 1 - 1 file changed, 1 deletion(-) diff --git a/electrum/tests/test_lntransport.py b/electrum/tests/test_lntransport.py index 327c215fd..4ae50c4d8 100644 --- a/electrum/tests/test_lntransport.py +++ b/electrum/tests/test_lntransport.py @@ -95,6 +95,5 @@ class TestLNTransport(ElectrumTestCase): await group.spawn(server_shaked.wait()) finally: server.close() - await server.wait_closed() await f()