Skip to content

Commit b43f8e1

Browse files
NodeApp uses self._os_ops.is_abs_path (os_ops 2.3.0) (#367)
* NodeApp uses self._os_ops.is_abs_path (os_ops 2.3.0) * get_bin_path2 uses os_ops.is_abs_path, too
1 parent 6338050 commit b43f8e1

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ dependencies = [
6565
"six>=1.9.0",
6666
"psutil",
6767
"packaging",
68-
"testgres.os_ops>=2.1.0,<3.0.0",
68+
"testgres.os_ops>=2.3.0,<3.0.0",
6969
]
7070

7171
[project.urls]

src/node_app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from .node import PostgresNode
44
from .node import PortManager
55

6-
import os
76
import typing
87

98

@@ -37,7 +36,7 @@ def __init__(
3736

3837
if test_path is None:
3938
self._test_path = os_ops.cwd()
40-
elif os.path.isabs(test_path):
39+
elif self._os_ops.is_abs_path(test_path):
4140
self._test_path = test_path
4241
else:
4342
self._test_path = os_ops.build_path(os_ops.cwd(), test_path)

src/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def get_bin_path2(os_ops: OsOperations, filename):
140140
assert isinstance(os_ops, OsOperations)
141141

142142
# check if it's already absolute
143-
if os.path.isabs(filename):
143+
if os_ops.is_abs_path(filename):
144144
return filename
145145
if isinstance(os_ops, RemoteOperations):
146146
pg_config = os.environ.get("PG_CONFIG_REMOTE") or os.environ.get("PG_CONFIG")

tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ pytest-env
44
pytest-xdist
55
psycopg2
66
six
7-
testgres.os_ops>=2.1.0,<3.0.0
7+
testgres.os_ops>=2.3.0,<3.0.0

0 commit comments

Comments
 (0)