@@ -115,6 +115,7 @@ class ProcessProxy(object):
115
115
process: wrapped psutill.Process object
116
116
ptype: instance of ProcessType
117
117
"""
118
+
118
119
def __init__ (self , process , ptype = None ):
119
120
self .process = process
120
121
self .ptype = ptype or ProcessType .from_process (process )
@@ -697,12 +698,12 @@ def start(self, params=[], wait=True):
697
698
return self
698
699
699
700
_params = [
700
- get_bin_path ("pg_ctl" ),
701
- "-D" , self .data_dir ,
702
- "-l" , self .pg_log_file ,
703
- "-w" if wait else '-W' , # --wait or --no-wait
704
- "start"
705
- ] + params # yapf: disable
701
+ get_bin_path ("pg_ctl" ),
702
+ "-D" , self .data_dir ,
703
+ "-l" , self .pg_log_file ,
704
+ "-w" if wait else '-W' , # --wait or --no-wait
705
+ "start"
706
+ ] + params # yapf: disable
706
707
707
708
try :
708
709
execute_utility (_params , self .utils_log_file )
@@ -752,7 +753,7 @@ def kill(self, someone=None):
752
753
"""
753
754
if self .is_started :
754
755
sig = signal .SIGKILL if os .name != 'nt' else signal .SIGBREAK
755
- if someone == None :
756
+ if someone is None :
756
757
os .kill (self .pid , sig )
757
758
else :
758
759
os .kill (self .auxiliary_pids [someone ][0 ], sig )
@@ -1496,10 +1497,10 @@ def querier():
1496
1497
return sum
1497
1498
1498
1499
def pgbench_table_checksums (self , dbname = "postgres" ,
1499
- pgbench_tables = ('pgbench_branches' ,
1500
- 'pgbench_tellers' ,
1501
- 'pgbench_accounts' ,
1502
- 'pgbench_history' )
1500
+ pgbench_tables = ('pgbench_branches' ,
1501
+ 'pgbench_tellers' ,
1502
+ 'pgbench_accounts' ,
1503
+ 'pgbench_history' )
1503
1504
):
1504
1505
return {(table , self .table_checksum (table , dbname ))
1505
1506
for table in pgbench_tables }
0 commit comments