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/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") 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