diff options
author | Kevin Wolf <kwolf@redhat.com> | 2019-09-19 18:18:31 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-10-04 11:59:16 +0200 |
commit | 7e693a0500455edab21754573c32b7146138cffd (patch) | |
tree | 973d0e002fe096b3973358d2e53cb3062d48a420 /tests/qemu-iotests/044 | |
parent | c69719fcadbc856db5348fd3401e65e38c10a22e (diff) |
iotests: Remove Python 2 compatibility code
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 <kwolf@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Diffstat (limited to 'tests/qemu-iotests/044')
-rwxr-xr-x | tests/qemu-iotests/044 | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/qemu-iotests/044 b/tests/qemu-iotests/044 index 05ea1f49c5..8b2afa2a11 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): |