From a3d88258a72d5052f13efd9e8d887bc22bbb35aa Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Sun, 18 May 2025 20:45:01 +0300 Subject: [PATCH] Make ruff happy --- test_runner/regress/test_replica_promote.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test_runner/regress/test_replica_promote.py b/test_runner/regress/test_replica_promote.py index c179457c93..82d0e8d6e9 100644 --- a/test_runner/regress/test_replica_promote.py +++ b/test_runner/regress/test_replica_promote.py @@ -5,12 +5,11 @@ This far, only contains a test that we don't break and that the data is persiste """ import psycopg2 - from fixtures.neon_fixtures import Endpoint, NeonEnv, wait_replica_caughtup from fixtures.pg_version import PgVersion -from fixtures.log_helper import log from pytest import raises + def test_replica_promotes(neon_simple_env: NeonEnv, pg_version: PgVersion): """ Test that a replica safely promotes, and can commit data updates which @@ -77,7 +76,7 @@ def test_replica_promotes(neon_simple_env: NeonEnv, pg_version: PgVersion): secondary_cur = secondary_conn.cursor() secondary_cur.execute(f"alter system set neon.safekeepers='{safekeepers}'") - secondary_cur.execute("select pg_reload_conf()"); + secondary_cur.execute("select pg_reload_conf()") new_primary = secondary old_primary = primary