From 7e693a0500455edab21754573c32b7146138cffd Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Thu, 19 Sep 2019 18:18:31 +0200 Subject: iotests: Remove Python 2 compatibility code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some scripts check the Python version number and have two code paths to accomodate both Python 2 and 3. Remove the code specific to Python 2 and assert the minimum version of 3.6 instead (check skips Python tests in this case, so the assertion would only ever trigger if a Python script is executed manually). Signed-off-by: Kevin Wolf Reviewed-by: Eduardo Habkost Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: John Snow Reviewed-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/044 | 3 --- 1 file changed, 3 deletions(-) (limited to 'tests/qemu-iotests/044') diff --git a/tests/qemu-iotests/044 b/tests/qemu-iotests/044 index 05ea1f4..8b2afa2 100755 --- a/tests/qemu-iotests/044 +++ b/tests/qemu-iotests/044 @@ -28,9 +28,6 @@ import struct import subprocess import sys -if sys.version_info.major == 2: - range = xrange - test_img = os.path.join(iotests.test_dir, 'test.img') class TestRefcountTableGrowth(iotests.QMPTestCase): -- cgit v1.1