From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRLn3-00017B-82 for qemu-devel@nongnu.org; Tue, 19 Dec 2017 12:34:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRLmy-0000K9-K4 for qemu-devel@nongnu.org; Tue, 19 Dec 2017 12:34:53 -0500 Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Tue, 19 Dec 2017 14:34:16 -0300 Message-Id: <20171219173425.8113-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 0/9] iotests: python3 compatibility List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , Max Reitz , Cleber Rosa , Eduardo Habkost , =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= , "Daniel P . Berrange" , Eric Blake , Stefan Hajnoczi , Fam Zheng , Markus Armbruster , Paolo Bonzini Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org, qemu-block@nongnu.org, John Snow , Nir Soffer , Peter Maydell , Janosch Frank , Ishani Chugh Hi, This is a very boring series. I a later series I refactor the iotests.py class, however when the first version of series [1] was posted I received comments that this class should no support Python 3. I didn't tested with very old CentOS release, but this should work with Python versions >= 2.6.0a2. Note: in today's IRC chat we suggest to drop Python 2 support for block iotests, continuing to support it for common scripts used by the build system. I'm not a Python expert, so I'll be very happy/relieved if someone is willing to fix/continue/improve this series :) Regards, Phil. [1]: http://lists.nongnu.org/archive/html/qemu-devel/2017-12/msg02339.html Philippe Mathieu-Daudé (9): qemu.py: replace iteritems() by items() for python3 compatibility qmp.py: encode JSON unicode as byte strings for python3 compatibility iotests: replace print statement by print() function for python3 compatibility iotests: use octal numbers for python3 compatibility iotests: replace xrange() by range() for python3 compatibility iotests: replace dict.has_key() by 'in' operator for python3 compatibility iotests: replace lambda function by lambda expression for python3 compatibility iotests: replace assertEquals() by assertEqual() for python3 compatibility iotests.py: use io.StringIO with python3 scripts/qemu.py | 2 +- scripts/qmp/qmp.py | 2 +- tests/qemu-iotests/041 | 6 +++--- tests/qemu-iotests/044 | 14 +++++++------- tests/qemu-iotests/065 | 4 ++-- tests/qemu-iotests/093 | 2 +- tests/qemu-iotests/096 | 4 ++-- tests/qemu-iotests/118 | 28 ++++++++++++++-------------- tests/qemu-iotests/136 | 2 +- tests/qemu-iotests/139 | 2 +- tests/qemu-iotests/149 | 3 ++- tests/qemu-iotests/163 | 2 +- tests/qemu-iotests/165 | 3 ++- tests/qemu-iotests/iotests.py | 14 +++++++++----- 14 files changed, 47 insertions(+), 41 deletions(-) -- 2.15.1