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

Diff for: testgres/api.py

+1-1
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

Diff for: testgres/pubsub.py

+1-1
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)