From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 89EC24765E0 for ; Thu, 24 Dec 2020 13:50:43 +0300 (MSK) References: From: Sergey Bronnikov Message-ID: <61dda0a6-29db-1741-5bbf-1ea7524630d6@tarantool.org> Date: Thu, 24 Dec 2020 13:50:41 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit Content-Language: en-US Subject: Re: [Tarantool-patches] [PATCH v3 1/5] test: convert print to function and make quotes use consistent List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladislav Shpilevoy , tarantool-patches@dev.tarantool.org, lvasiliev@tarantool.org Thanks for review! On 23.12.2020 18:39, Vladislav Shpilevoy wrote: > Hi! Thanks for the patch! > >> diff --git a/test/replication-py/swap.test.py b/test/replication-py/swap.test.py >> index 98eeeea6d..b162ae241 100644 >> --- a/test/replication-py/swap.test.py >> +++ b/test/replication-py/swap.test.py >> @@ -7,26 +9,26 @@ import yaml >> REPEAT = 20 >> ID_BEGIN = 0 >> ID_STEP = 5 >> -LOGIN = 'test' >> -PASSWORD = 'pass123456' >> +LOGIN = "test" >> +PASSWORD = "pass123456" >> >> -engines = ['memtx', 'vinyl'] >> +engines = ["memtx", "vinyl"] >> >> def insert_tuples(_server, begin, end, msg = "tuple"): >> for engine in engines: >> for i in range(begin, end): >> - print 'box.space.%s:insert{%d, "%s %d"}' % (engine, i, msg, i) >> - print '-' >> + print('box.space.{}:insert{{{}, "{} {}"}}'.format(engine, i, msg, i)) > Oh, noooo! There is still ' instead of " !!! Fixed and force-pushed. --- a/test/replication-py/swap.test.py +++ b/test/replication-py/swap.test.py @@ -17,7 +17,7 @@ engines = ["memtx", "vinyl"]  def insert_tuples(_server, begin, end, msg = "tuple"):      for engine in engines:          for i in range(begin, end): -            print('box.space.{}:insert{{{}, "{} {}"}}'.format(engine, i, msg, i)) +            print("box.space.{}:insert{{{}, \"{} {}\"}}".format(engine, i, msg, i))              print("-")              space = _server.iproto.py_con.space(engine)              print(space.insert((i, "{} {}".format(msg, i))))