File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 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):
2222 sock = socket .create_connection (("localhost" , port ))
2323 except socket .error :
2424 return True
25- sock .close ()
26-
2725 if rais :
2826 raise RuntimeError ("The server is already running on port {0}" .format (port ))
2927 return False
@@ -138,7 +136,7 @@ def __init__(self,
138136 ssl_ca_file = None ,
139137 ssl_ciphers = None ,
140138 create_unix_socket = False ):
141- os .popen ('ulimit -c unlimited' ). close ()
139+ os .popen ('ulimit -c unlimited' )
142140
143141 if create_unix_socket :
144142 self .host = None
@@ -212,7 +210,6 @@ def wait_until_started(self):
212210 while True :
213211 ans = temp ('box.info.status' )[0 ]
214212 if ans in ('running' , 'hot_standby' , 'orphan' ) or ans .startswith ('replica' ):
215- temp .disconnect ()
216213 return True
217214 elif ans in ('loading' ,):
218215 continue
@@ -265,8 +262,6 @@ def clean(self):
265262 if (self ._socket is not None ) and (not self ._socket .file .closed ):
266263 self ._socket .close ()
267264
268- del self .log_des
269-
270265 def __del__ (self ):
271266 self .stop ()
272267 self .clean ()
You can’t perform that action at this time.
0 commit comments