File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ def check_port(port, rais=True):
22
22
sock = socket .create_connection (("localhost" , port ))
23
23
except socket .error :
24
24
return True
25
- sock .close ()
26
-
27
25
if rais :
28
26
raise RuntimeError ("The server is already running on port {0}" .format (port ))
29
27
return False
@@ -138,7 +136,7 @@ def __init__(self,
138
136
ssl_ca_file = None ,
139
137
ssl_ciphers = None ,
140
138
create_unix_socket = False ):
141
- os .popen ('ulimit -c unlimited' ). close ()
139
+ os .popen ('ulimit -c unlimited' )
142
140
143
141
if create_unix_socket :
144
142
self .host = None
@@ -212,7 +210,6 @@ def wait_until_started(self):
212
210
while True :
213
211
ans = temp ('box.info.status' )[0 ]
214
212
if ans in ('running' , 'hot_standby' , 'orphan' ) or ans .startswith ('replica' ):
215
- temp .disconnect ()
216
213
return True
217
214
elif ans in ('loading' ,):
218
215
continue
@@ -265,8 +262,6 @@ def clean(self):
265
262
if (self ._socket is not None ) and (not self ._socket .file .closed ):
266
263
self ._socket .close ()
267
264
268
- del self .log_des
269
-
270
265
def __del__ (self ):
271
266
self .stop ()
272
267
self .clean ()
You can’t perform that action at this time.
0 commit comments