From 063333ee92989d5666e293aa9179d3de651ed13f Mon Sep 17 00:00:00 2001 From: Adam Kelly <338792+aqk@users.noreply.github.com> Date: Tue, 22 Mar 2022 16:21:06 -0700 Subject: [PATCH] remove duplicate event_loop (#10768) --- tests/core/test_db_validation.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tests/core/test_db_validation.py b/tests/core/test_db_validation.py index 64d5e1e79e6d..39e28d42fe13 100644 --- a/tests/core/test_db_validation.py +++ b/tests/core/test_db_validation.py @@ -1,14 +1,11 @@ -import asyncio import random import sqlite3 -from asyncio.events import AbstractEventLoop from contextlib import closing from pathlib import Path -from typing import Iterator, List +from typing import List import aiosqlite import pytest -import pytest_asyncio from chia.cmds.db_validate_func import validate_v2 from chia.consensus.blockchain import Blockchain @@ -25,12 +22,6 @@ from tests.setup_nodes import test_constants from tests.util.temp_file import TempFile -@pytest_asyncio.fixture(scope="session") -def event_loop() -> Iterator[AbstractEventLoop]: - loop = asyncio.get_event_loop() - yield loop - - def rand_hash() -> bytes32: ret = bytearray(32) for i in range(32):