1
0

tests: fix DeprecationWarnings for py3.14: asyncio.iscoroutinefunction

same as https://github.com/spesmilo/electrum/pull/10197
This commit is contained in:
SomberNight
2025-10-09 15:43:54 +00:00
parent 2dc9ca906b
commit dbacb503a4
2 changed files with 6 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ import threading
import tempfile
import shutil
import functools
import inspect
import electrum
import electrum.logging
@@ -88,7 +89,7 @@ def as_testnet(func):
NOTE: this is inherently sequential; tests running in parallel would break things
"""
old_net = constants.net
if asyncio.iscoroutinefunction(func):
if inspect.iscoroutinefunction(func):
async def run_test(*args, **kwargs):
try:
constants.BitcoinTestnet.set_as_network()