From 62e042f39aaa194dab4cea0d5b4ea7337e51a354 Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Thu, 4 Jun 2026 22:46:44 +0300 Subject: [PATCH 1/2] NodeApp uses self._os_ops.is_abs_path (os_ops 2.3.0) --- pyproject.toml | 2 +- src/node_app.py | 3 +-- tests/requirements.txt | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 19e41ae3..3ab1d169 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,7 +65,7 @@ dependencies = [ "six>=1.9.0", "psutil", "packaging", - "testgres.os_ops>=2.1.0,<3.0.0", + "testgres.os_ops>=2.3.0,<3.0.0", ] [project.urls] diff --git a/src/node_app.py b/src/node_app.py index 8daecb87..bb8ebc5b 100644 --- a/src/node_app.py +++ b/src/node_app.py @@ -3,7 +3,6 @@ from .node import PostgresNode from .node import PortManager -import os import typing @@ -37,7 +36,7 @@ def __init__( if test_path is None: self._test_path = os_ops.cwd() - elif os.path.isabs(test_path): + elif self._os_ops.is_abs_path(test_path): self._test_path = test_path else: self._test_path = os_ops.build_path(os_ops.cwd(), test_path) diff --git a/tests/requirements.txt b/tests/requirements.txt index 7cafbb32..f85ddca4 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -4,4 +4,4 @@ pytest-env pytest-xdist psycopg2 six -testgres.os_ops>=2.1.0,<3.0.0 +testgres.os_ops>=2.3.0,<3.0.0 From c2e01fb208b12ffc65809e818df7944c898daa3c Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Thu, 4 Jun 2026 23:23:53 +0300 Subject: [PATCH 2/2] get_bin_path2 uses os_ops.is_abs_path, too --- src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index 2204e7a2..a8e35aa9 100644 --- a/src/utils.py +++ b/src/utils.py @@ -140,7 +140,7 @@ def get_bin_path2(os_ops: OsOperations, filename): assert isinstance(os_ops, OsOperations) # check if it's already absolute - if os.path.isabs(filename): + if os_ops.is_abs_path(filename): return filename if isinstance(os_ops, RemoteOperations): pg_config = os.environ.get("PG_CONFIG_REMOTE") or os.environ.get("PG_CONFIG")