Skip to content

Commit d6be913

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 parent 8edea09 commit d6be913

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
assert type(node) == self.original_node.__class__ # noqa: E721
164164

165165
with clean_on_error(node) as node:
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
return node

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy