File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -235,9 +235,9 @@ def test_exclude_unlogged_tables_2(self):
235
235
'postgres' ,
236
236
'insert into test select generate_series(0,20050000)::text' )
237
237
238
- rel_path = node .safe_psql (
238
+ rel_path = node .execute (
239
239
'postgres' ,
240
- "select pg_relation_filepath('test')" ). decode ( 'utf-8' ). rstrip ()
240
+ "select pg_relation_filepath('test')" )[ 0 ][ 0 ]
241
241
242
242
backup_id = self .backup_node (
243
243
backup_dir , 'node' , node ,
@@ -274,10 +274,11 @@ def test_exclude_unlogged_tables_2(self):
274
274
node .slow_start ()
275
275
276
276
self .assertEqual (
277
- node .safe_psql (
277
+ node .execute (
278
278
'postgres' ,
279
- 'select count(*) from test' ).decode ('utf-8' ).rstrip (),
280
- '0' )
279
+ # TODO REVIEW unfortunately this make auto conversion from string to int, it's weird for me
280
+ 'select count(*) from test' )[0 ][0 ],
281
+ 0 )
281
282
282
283
# Clean after yourself
283
284
self .del_test_dir (module_name , fname )
You can’t perform that action at this time.
0 commit comments