From 51c2014294eabc7252d308b35a6e116d7732dbec Mon Sep 17 00:00:00 2001 From: Manuel Guenther <manuel.guenther@idiap.ch> Date: Mon, 1 Jun 2015 15:11:06 +0200 Subject: [PATCH] Fixed py3 issue with range() and list() --- bob/bio/base/test/test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bob/bio/base/test/test_utils.py b/bob/bio/base/test/test_utils.py index b8781f90..224e8bd1 100644 --- a/bob/bio/base/test/test_utils.py +++ b/bob/bio/base/test/test_utils.py @@ -83,10 +83,10 @@ def test_sampling(): assert indices == list(range(5, 100, 10)) indices = bob.bio.base.selected_indices(100, 300) - assert indices == list(range(100)) + assert indices == range(100) indices = bob.bio.base.selected_indices(100, None) - assert indices == list(range(100)) + assert indices == range(100) array = numpy.arange(100) elements = bob.bio.base.selected_elements(array, 10) -- GitLab