[Tarantool-patches] [PATCH 1/4] test: convert print to function and make quotes use consistent

Sergey Bronnikov sergeyb at tarantool.org
Wed Dec 23 15:34:51 MSK 2020


Hi,

On 20.12.2020 19:47, Vladislav Shpilevoy wrote:
>> @@ -38,9 +40,9 @@ unpacker.feed(packet)
>>   # Parse packet
>>   header = unpacker.unpack()
>>   body = unpacker.unpack()
>> -print 'error code', (header[IPROTO_CODE] & (REQUEST_TYPE_ERROR - 1))
>> -print 'error message: ', body[IPROTO_ERROR]
>> -print 'eof:', len(s.recv(1024)) == 0
>> +print("error code {}".format((header[IPROTO_CODE] & (REQUEST_TYPE_ERROR - 1))))
>> +print("error message:  {}".format(body[IPROTO_ERROR]))
>> +print("eof: {}".format(len(s.recv(1024)) == 0))
>>   s.close()
>>   
>>   server.admin("box.session.on_connect(nil, f1)")
>> diff --git a/test/box-py/bootstrap.result b/test/box-py/bootstrap.result
> Please, ensure no .result files are changed. They have nothing to do
> with Python strings and quotes.
>
> Currently you have changed test/box-py/bootstrap.result,
> test/box-py/call.result, test/box-py/print.result,
> test/replication-py/cluster.result.
>
> Everything else looks good.
>
reverted changes that updates .result files, force-pushed.


More information about the Tarantool-patches mailing list