]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/test_db_async_connection.py
switch to a more flexible variant description format
[nominatim.git] / test / python / test_db_async_connection.py
index 330b86f7cb46e4e324de82467d461523e0dd94b8..7398eac3c0297819adb32a4e9a01b8b1d9ddf2da 100644 (file)
@@ -6,15 +6,14 @@ import concurrent.futures
 
 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
@@ -106,5 +105,3 @@ def test_deadlock(simple_conns):
         future.result()
 
         assert len(deadlock_check) == 1
-
-