Skip to content

Commit 39c6d79

Browse files
committed
make NodeBackup aware of inheritors of PostgresNode
1 parent bf33992 commit 39c6d79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testgres/backup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ def spawn_primary(self, name=None, destroy=True):
143143
base_dir = self._prepare_dir(destroy)
144144

145145
# Build a new PostgresNode
146-
from .node import PostgresNode
147-
with clean_on_error(PostgresNode(name=name, base_dir=base_dir)) as node:
146+
NodeClass = self.original_node.__class__
147+
with clean_on_error(NodeClass(name=name, base_dir=base_dir)) as node:
148148

149149
# New nodes should always remove dir tree
150150
node._should_rm_dirs = True

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