import pytest
import psycopg2
-from psycopg2.extras import wait_select
from nominatim.db.async_connection import DBConnection, DeadlockHandler
@pytest.fixture
def conn(temp_db):
- with closing(DBConnection('dbname=' + temp_db)) as c:
- yield c
+ with closing(DBConnection('dbname=' + temp_db)) as connection:
+ yield connection
@pytest.fixture
future.result()
assert len(deadlock_check) == 1
-
-