From f59c621cc05bb36494e048cf2f933ab5917b2692 Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Wed, 9 Oct 2019 14:05:15 +0100 Subject: [PATCH] Defines bitcoind fixture session-wise --- test/unit/test_inspector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/test_inspector.py b/test/unit/test_inspector.py index 1a1eb78..3aa68f6 100644 --- a/test/unit/test_inspector.py +++ b/test/unit/test_inspector.py @@ -21,7 +21,7 @@ WRONG_TYPES_NO_STR = [[], urandom(32), 3.2, 2.0, (), object, {}, object()] logging.getLogger().disabled = True -@pytest.fixture(autouse=True) +@pytest.fixture(autouse=True, scope='session') def run_bitcoind(): bitcoind_thread = Thread(target=run_simulator) bitcoind_thread.daemon = True