From 2dc9b4640c0372362fef5f55d6411b7a2a4e8e30 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Sun, 25 May 2025 17:49:02 +0300 Subject: [PATCH] Make mypy 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 48baef713b..d1571a8d03 100644 --- a/test_runner/regress/test_replica_promote.py +++ b/test_runner/regress/test_replica_promote.py @@ -4,8 +4,6 @@ File with secondary->primary promotion testing. This far, only contains a test that we don't break and that the data is persisted. """ -import os - import psycopg2 from fixtures.neon_fixtures import Endpoint, NeonEnv, wait_replica_caughtup from fixtures.pg_version import PgVersion @@ -58,7 +56,8 @@ def test_replica_promotes(neon_simple_env: NeonEnv, pg_version: PgVersion): secondary_cur = secondary_conn.cursor() if env.pg_version is PgVersion.V14: - signalfile = os.path.join(secondary.pgdata_dir, "standby.signal") + assert secondary.pgdata_dir + signalfile = secondary.pgdata_dir / "standby.signal" assert signalfile.exists() signalfile.unlink()