Skip to content

NodeApp::make_empty has a problem with base_dir = None #277

Open
@dmitry-lipetsk

Description

@dmitry-lipetsk

testgres/testgres/node.py

Lines 2377 to 2382 in d6be913

def make_empty(
self,
base_dir=None,
port=None,
bin_dir=None):
real_base_dir = self.os_ops.build_path(self.test_path, base_dir)

NodeApp.make_empty fails when base_dir is None.

Exception has occurred: TypeError
join() argument must be str, bytes, or os.PathLike object, not 'NoneType'
  File "/home/linuxbrew/.linuxbrew/opt/[email protected]/lib/python3.13/posixpath.py", line 82, in join
    b = os.fspath(b)
TypeError: expected str, bytes or os.PathLike object, not NoneType

During handling of the above exception, another exception occurred:

  File "/home/dima/MY/GitHub2/testgres/master/work02/testgres/operations/local_ops.py", line 257, in build_path
    return os.path.join(a, *parts)
           ~~~~~~~~~~~~^^^^^^^^^^^
  File "/home/dima/MY/GitHub2/testgres/master/work02/testgres/node_app.py", line 66, in make_empty
    real_base_dir = self._os_ops.build_path(self._test_path, base_dir)
  File "/home/dima/MY/GitHub2/testgres/master/work02/testgres/node_app.py", line 95, in make_simple
    node = self.make_empty(
  File "/home/dima/MY/GitHub2/testgres/master/work02/tests/test_testgres_common.py", line 1599, in test_node_app__make_simple__checksum
    with app.make_simple(checksum=False):

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions