From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 78BC964672; Wed, 13 Jan 2021 11:49:49 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 78BC964672 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1610527789; bh=bfoRjZyONcn6Ablq8j8oK0AYmqIJ3bQMkwAIG3ImFPU=; h=To:Cc:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=fGrRFyF2adBAb8ced/5qheney1qH3SScQhn23f0EZWKtcPZ5375qeuCVyIHnBHC0e +Vnv+iSs42pwYaeq7R5NXB47MEcBgHs6e4MiIgJSrzQLJ8u/IarTPd3O7yZgXBoOfE c1UKv4ikgu4Hr4fOcOkPECtiNDgFkYrL1I13wmzY= Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (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 215B84C88A for ; Wed, 13 Jan 2021 11:49:01 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 215B84C88A Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1kzbps-0007V2-9W; Wed, 13 Jan 2021 11:49:00 +0300 To: tarantool-patches@dev.tarantool.org, lvasiliev@tarantool.org Cc: Sergey Bronnikov , alexander.turenko@tarantool.org Date: Wed, 13 Jan 2021 11:48:32 +0300 Message-Id: <28dc6d930bc93ece50cce5ba5f37b2eab4bdf50d.1610526975.git.estetus@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9D0E79FBC973162CDAC53986DC5FB1AB1465E8C05863AF8B800894C459B0CD1B933F10D13559B00C277354EF8712D92F654F7F300FA7FCDDC3A3291F18787EBD1 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE754E958D11587BC68EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637835928C62272F24E8638F802B75D45FF5571747095F342E8C7A0BC55FA0FE5FC081036C1CE0AB314914CA86B8A6F1573FBE162A2319CDC1C389733CBF5DBD5E913377AFFFEAFD269A417C69337E82CC2CC7F00164DA146DAFE8445B8C89999729449624AB7ADAF37F6B57BC7E64490611E7FA7ABCAF51C92176DF2183F8FC7C0D9442B0B5983000E8941B15DA834481F9449624AB7ADAF3735872C767BF85DA29E625A9149C048EE0A3850AC1BE2E735BFC944FC657CDB724AD6D5ED66289B524E70A05D1297E1BB35872C767BF85DA227C277FBC8AE2E8B426E46268278306375ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC85D9B7C4F32B44FF57D4B828FA1BC0F1ACBD9CCCA9EDD067B1EDA766A37F9254B7 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CD9CBB3A052EDBDE569E9438F5E0DC7EF6FEFF5DC1F72A1529C2B6934AE262D3EE7EAB7254005DCED7532B743992DF240BDC6A1CF3F042BAD6DF99611D93F60EF6EA1BA7CA28B4A74699F904B3F4130E343918A1A30D5E7FCCB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D349C39CCCDAABCB54B0F62D6E03EA23503C438E87D7F59E1C950E2FA01CF5D41004F989F27CF23AA241D7E09C32AA3244C71FB37E6209E2525DF184F8EFB5BF2F2E646F07CC2D4F3D8927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj4exXbGs3yZoCncBxMB5Txg== X-Mailru-Sender: 689FA8AB762F73937240DDB2502DDB70F8C5A0B703AEAEF124777D2D90F634AEDD788429FD8613638ED9BB8B05EE7B3AFB559BB5D741EB96D19CD4E7312BAA970A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v1 2/4] test: fix xlog-py/big_lsn.test.py X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Bronnikov via Tarantool-patches Reply-To: sergeyb@tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" From: Sergey Bronnikov Set correct encoding on opening file. Part of #5538 --- test/xlog-py/big_lsn.test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/xlog-py/big_lsn.test.py b/test/xlog-py/big_lsn.test.py index edc1e5620..73dcf7a48 100644 --- a/test/xlog-py/big_lsn.test.py +++ b/test/xlog-py/big_lsn.test.py @@ -1,4 +1,5 @@ import os +import codecs # # Check that Tarantool handles huge LSNs well (gh-4033). @@ -17,7 +18,7 @@ new_lsn = 123456789123 wal_dir = os.path.join(server.vardir, server.name) old_wal = os.path.join(wal_dir, "%020d.xlog" % old_lsn) new_wal = os.path.join(wal_dir, "%020d.xlog" % new_lsn) -with open(old_wal, "r+") as f: +with codecs.open(old_wal, "r+", encoding = "ISO-8859-1") as f: s = f.read() s = s.replace("VClock: {{1: {}}}".format(old_lsn), "VClock: {{1: {}}}".format(new_lsn)) -- 2.25.1