Skip to content

Commit 2ab71b1

Browse files
pylint: disable consider-using-with cases
Disable all cases of R1732 consider-using-with in test server code: the implementation doesn't allows to use with. Part of #270
1 parent 52d6fe9 commit 2ab71b1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/suites/lib/tarantool_server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def log_des(self):
160160
"""
161161
Get server log file descriptor.
162162
"""
163+
# pylint: disable=consider-using-with
163164

164165
if self._log_des is None:
165166
self._log_des = open(self.logfile_path, 'a')
@@ -204,6 +205,8 @@ def __init__(self,
204205
ssl_password_file=None,
205206
create_unix_socket=False,
206207
auth_type=None):
208+
# pylint: disable=consider-using-with
209+
207210
os.popen('ulimit -c unlimited').close()
208211

209212
if create_unix_socket:
@@ -332,6 +335,7 @@ def start(self):
332335
* Wait unitl Tarantool\\Box
333336
started --DONE(wait_until_started)
334337
"""
338+
# pylint: disable=consider-using-with
335339

336340
self.generate_configuration()
337341
if self.script:

0 commit comments

Comments
 (0)