Skip to content

Commit 50e02ff

Browse files
committed
change safe_psql() call to execute() in pubsub.py
1 parent d60cdcb commit 50e02ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

testgres/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
... replica.catchup() # wait until changes are visible
2929
... print(replica.execute('postgres', 'select count(*) from test'))
3030
PostgresNode(name='...', port=..., base_dir='...')
31-
[(3L,)]
31+
[(3,)]
3232
"""
3333
from .node import PostgresNode
3434

testgres/pubsub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def drop(self, dbname=None, username=None):
7777
"""
7878
Drop publication
7979
"""
80-
self.node.safe_psql(
80+
self.node.execute(
8181
"drop publication {}".format(self.name),
8282
dbname=dbname,
8383
username=username)

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