Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd6be913

Browse files
[#274] Unused should_rm_dirs is deleted (cleanup) (#275)
This strange PostgresNode property is not documented and is not used in Testgres code.
1 parent8edea09 commitd6be913

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

‎testgres/backup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@ def spawn_primary(self, name=None, destroy=True):
163163
asserttype(node)==self.original_node.__class__# noqa: E721
164164

165165
withclean_on_error(node)asnode:
166-
167-
# New nodes should always remove dir tree
168-
node._should_rm_dirs=True
169-
170166
# Set a new port
171167
node.append_conf(filename=PG_CONF_FILE,line='\n')
172168
node.append_conf(filename=PG_CONF_FILE,port=node.port)

‎testgres/node.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2384,7 +2384,6 @@ def make_empty(
23842384
self.os_ops.makedirs(real_base_dir)
23852385

23862386
node=PostgresNode(base_dir=real_base_dir,port=port,bin_dir=bin_dir)
2387-
node.should_rm_dirs=True
23882387
self.nodes_to_cleanup.append(node)
23892388

23902389
returnnode

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp